本模组仅作为独立移植版,将来自 Mob AI Tweaks 模组的命令进行单独提取。由于数据包创作者要求提供这些命令的独立、仅限服务端版本的移植包。
新增以下命令:
/attack - 使一个生物攻击另一个生物,建议与 /execute 配合使用以实现完全控制
示例:
/attack @n[type=husk] fake_melee (使尸壳使用挥舞动画但不造成任何伤害)
/attack @n[type=drowned] @n[type=bogged] with_melee (使溺尸对沼骸使用近战攻击)
/attack @n[type=skeleton] @p from_range (使骷髅对其最近的玩家使用默认远程攻击,即射出箭矢)
/attack @n[type=zombie] @r custom_projectile minecraft:arrow 1 20 {crit:1b} (使僵尸向随机实体射出一支箭,速度为1,不精确度为20,并附带NBT数据{crit:1b})
/motion - 顾名思义,允许你对生物施加速度向量
示例:
/motion @p 0 1 0 add (在Y轴速度上增加1)
/motion @p 0 1 0 set (将速度设置为X方向0,Y方向1,Z方向0)
/motion @p ~ 1 ~ set (将Y轴速度设为1,但保持X和Z方向的运动不变)
/motion @p 0 ~ 1 set true (将X轴速度设为0,保持Y轴速度,将Z轴速度设为1并根据偏航角旋转)
/motion @p 0.5 ~ 0.5 multiply (将X和Z轴速度乘以0.5)
/pathto - 强制生物寻路至给定坐标或另一个实体
示例:
/pathto @n[type=zombie] 0 0 0 (使僵尸寻路至世界出生点)
/pathto @n[type=zombie] ~10 ~ ~ 2.0 (使僵尸沿X轴向前移动10个方块,速度倍率为2.0)
/pathto @n[type=zombie] 0 0 0 2.0 10 (使僵尸以2.0的速度倍率寻路至世界出生点,同时保持与目的地至少10个方块的距离)
/pathto @n[type=zombie] @p (使僵尸寻路至最近的玩家)
/pathto @n[type=zombie] @p 0.5 (使僵尸以0.5的速度倍率寻路至最近的玩家)
/pathto @n[type=zombie] @p 0.5 4 (使僵尸以0.5的速度倍率寻路至最近的玩家,同时保持与该玩家至少4个方块的距离)
/target - 使生物互相锁定为目标
示例:
/target @n[type=blaze] @n[type=breeze] (使烈焰人锁定旋风人作为目标)
此外,本模组还向后移植了 1.21.2 版本中的 /rotate 命令
This mod is simply a standalone port of the commands added by the Mob AI Tweaks mod, as datapack creators are requesting me a separate, server-side only port of them.
Adds the following commands:
/attack - makes one mob attack another, recommended to be used in conjunction with /execute for full control
Examples:
/attack @n[type=husk] fake_melee (make husk use swing animation but not deal any damage)
/attack @n[type=drowned] @n[type=bogged] with_melee (make drowned use melee attack on bogged)
/attack @n[type=skeleton] @p from_range (make skeleton use their default ranged attack, in this case, shooting an arrow, on the nearest player to it)
/attack @n[type=zombie] @r custom_projectile minecraft:arrow 1 20 {crit:1b} (make zombie shoot an arrow at a random entity with speed of 1, inaccuracy of 20 and nbt data of {crit:1b})
/motion - self explanatory, lets you apply velocity to mobs
Examples:
/motion @p 0 1 0 add (adds 1 to y velocity)
/motion @p 0 1 0 set (sets velocity to 0x, 1y, and 0z)
/motion @p ~ 1 ~ set (set y velocity to 1 but keep x and z motion)
/motion @p 0 ~ 1 set true (set x velocity to 0, keep y velocity, set z velocity to 1 and rotate according to yaw)
/motion @p 0.5 ~ 0.5 multiply (multiply x and z velocities with 0.5)
/pathto - forces mobs to pathfind to a given coordinate or another entity
Examples:
/pathto @n[type=zombie] 0 0 0 (makes zombie pathfind to world spawn)
/pathto @n[type=zombie] ~10 ~ ~ 2.0 (makes zombie pathfind 10 blocks forward in x axis with a speed multiplier of 2.0)
/pathto @n[type=zombie] 0 0 0 2.0 10 (makes zombie pathfind to world spawn with a speed multiplier of 2.0 keeping a minimum distance of 10 blocks away from the destination)
/pathto @n[type=zombie] @p (makes zombies pathfind to the nearest player)
/pathto @n[type=zombie] @p 0.5 (makes zombies pathfind to the nearest player with a speed multiplier of 0.5)
/pathto @n[type=zombie] @p 0.5 4 (makes zombies pathfind to the nearest player with a speed multiplier of 0.5 while keeping a minimum distance of 4 blocks away from them)
/target - makes mobs target each other
Examples:
/target @n[type=blaze] @n[type=breeze] (makes blaze target breeze)
Additionally, this mod backports /rotate from 1.21.2
评论 0
登录后参与评分
还没有评论,来抢沙发吧