RoleplAI
一个轻量级工具,添加了一些用于修改实体行为的命令。专为角色扮演服务器设计,与数据包/命令方块配合良好。
命令
-
/roleplai - 主命令(别名 /rai)
-
/roleplai <源实体> goto <目标位置> [速度] [强制] - 使源实体以给定速度(默认值为 1)寻路前往目标位置。如果速度设置过高,实体可能会原地打转。如果将 force 设置为 true,实体将持续前往该位置,直到收到新的指令。否则,实体在途中可能会分心。
-
/roleplai <source entity> attack <target entity> [force] - 使源实体攻击目标实体。仅当源实体具备攻击实体的能力时才会生效;否则,源实体只会走向目标实体。如果将 force 设置为 true,则源实体将持续攻击该实体,直到收到新的指令或目标实体被击杀为止。否则,源实体在途中可能会分心。
-
/roleplai <source entity> follow <target entity> [range] [speed] - 使源实体以指定的范围(默认为 0)和速度(默认为 1)跟随目标实体。一旦源实体进入指定范围,它将停止跟随并根据默认行为行动,直到离开该范围。
-
/roleplai <source entity> actas <entity type> - 使源实体拥有给定实体类型的行为(通过 DisguiseLib)。通常效果良好,但可能存在一些奇怪的交互问题。
-
/roleplai <source entity> reset [behavior|goals] - 重置源实体的行为(actas)或目标(goto/attack/follow)。如果未指定参数,则同时重置两者。
RoleplAI
A lightweight tool adding some commands to modify entity behavior. Intended for use in roleplay servers. Works well with datapacks / command blocks.
Commands
/roleplai - Main command (alias /rai)
/roleplai <source entity> goto <target position> [speed] [force] - Make source entity pathfind to target position at given speed (default 1). If speed is set too high, the entity might run in circles. If force is set to true, the entity will continuously go to that position until given a new directive. Otherwise, the entity might get distracted along the way.
/roleplai <source entity> attack <target entity> [force] - Make source entity attack target entity. Will only work if source entity is capable of attacking entities - if not, source entity will just walk into target entity. If force is set to true, the entity will continuously be made to attack entity until given a new directive, or until target entity is killed. Otherwise, the entity might get distracted along the way.
/roleplai <source entity> follow <target entity> [range] [speed] - Make source entity follow target entity at given range (default 0) and given speed (default 1). Once source entity is in range, it will stop and act according to default behavior until out of range.
/roleplai <source entity> actas <entity type> - Gives source entity the behavior of the given entity type (via DisguiseLib). Usually works well, but strange interactions exist.
/roleplai <source entity> reset [behavior|goals] - resets the behavior (actas) or goals (goto/attack/follow) of source entity. If not specified, resets both.
评论 0
登录后参与评分
还没有评论,来抢沙发吧