a65w46a
怎么做的用命令方块控制生物移动
然后来求教了qwq
说清原理


爱心魔王FHC
http://www.mcbbs.net/forum.php?mod=viewthread&tid=571029

zbtlucky
不会 刚刚入住我的世界 新手 求大神带

1134443057
你要什么生物,我下面用Zombie带替
execute @a ~ ~ ~ detect ~0.49999999999995 ~2 ~ stone 0 tp @e[type=Zombie] ~0.49999999999995 ~ ~(xyz轴要在方块中心,你可以用命令方块召唤一个盔甲架,命令方块召唤的盔甲架会在中心,比如
summon ArmorStand ~ ~2 ~,你应该懂吧,然后tp @a @e[type=ArmorStand] 别动,记坐标)
execute @a ~ ~ ~ detect ~-0.49999999999995 ~2 ~ stone 1 tp @e[type=Zombie] ~0.49999999999995 ~ ~
execute @a ~ ~ ~ detect ~ ~2 ~0.49999999999995  stone 2 tp @e[type=Zombie] ~ ~ ~0.49999999999995
execute @a ~ ~ ~ detect ~ ~2 ~-0.49999999999995  stone 3 tp @e[type=Zombie] ~ ~ ~-0.49999999999995
然后再把每条指令后面的tp改成tp @a 刚刚盔甲架的xyz轴。
为了不让Zombie卡方块,你要同时执行
execute @e[type=Zombie] ~ ~ ~ detect ~0.35 ~ ~ air 0 tp @e[type=Zombie] ~0.2 ~ ~
execute @e[type=Zombie] ~ ~ ~ detect ~-0.35 ~ ~ air 0 tp @e[type=Zombie] ~-0.2 ~ ~
execute @e[type=Zombie] ~ ~ ~ detect ~ ~ ~0.35 air 0 tp @e[type=Zombie] ~ ~ ~0.35
execute @e[type=Zombie] ~ ~ ~ detect ~ ~ ~-0.35 air 0 tp @e[type=Zombie] ~ ~ ~-0.35
(以上指令全部高频激活)
===============================================================
跳跃触发事件
scoreboard objectives add jump stat.jump
scoreboard players set @a jump 0(高频)
execute @a[score_jump_min=1] ~ ~ ~ effect @a 1 1 1 (我就打个比方,你可以吧effect @a 1 1 1给换成你要的指令)
===============================================================
为了可以同时出现同一种生物,你要给你的生物加个tag
summon 生物名 ~ ~ ~ {Tags:["标签名"]}
如果有Tag的话,那就把所有的@e[type=Zombie]替换成@e[tag=标签名],这样就可以同时出现同个生物了,除了那个要操控的生物外,其他同类生物不可带标签。
===============================================================
最后我说句话:你想学的话就拆地图

下一页 最后一页