【MCBE命令】如何选择视线内的实体
TIP! Right-click and select "Save link as..." to download.
命令↓
/execute as @e[type=creeper] at @a positioned ^63.75^^8.1 if entity @s[r=64.25,rm=63.25] at @a positioned ^-63.75^^8.1 if entity @s[r=64.25,rm=63.25] at @a positioned ^^63.75^8.1 if entity @s[r=64.25,rm=63.25] at @a positioned ^^-63.75^8.1 if entity @s[r=64.25,rm=63.25] run kill (重复无条件零延迟)
命令(/execute旧语法)↓
/tag @e remove a (重复无条件零延迟)
/tag @e remove b (连锁无条件零延迟,下同)
/tag @e remove c
/execute @a ^63.75^^8.1 tag @e[type=creeper,r=64.25,63.25] add a
/execute @a ^-63.75^^8.1 tag @e[type=creeper,r=64.25,63.25] add b
/execute @a ^^63.75^8.1 tag @e[type=creeper,r=64.25,63.25] add c
/execute @a ^^-63.75^8.1 kill @e[type=creeper,r=64.25,63.25,tag=a,tag=b,tag=c]
这样的命令要分别复制粘贴在两个命令方块或命令方块链内,将其中一个里的命令涉及的所有坐标抬高一格