1
Range between entities?
In minecraft you can ad a NBT tag called maximum range or minimum range.
example:
/kill @e[r=3,type=Zombie]
but when you put this in a command block it counts the range from the command block.
Is there any way how to kill Zombies in range of 3 blocks from an (examlpe)Villager?
pls help
-olik400
example:
/kill @e[r=3,type=Zombie]
but when you put this in a command block it counts the range from the command block.
Is there any way how to kill Zombies in range of 3 blocks from an (examlpe)Villager?
pls help
-olik400
Create an account or sign in to comment.
4
1
Please remember the coordinates at the /execute command (~ ~ ~ to execute at the entity that you're executing from's original position):
/execute @e[type=Villager] ~ ~ ~ kill @e[r=-3,type=Zombie][/
1
/execute @e[type=Villager] kill @e[r=-3,type=Zombie]
fixed some errors
1
/execute can be used to make something other than a command block execute a command.
for example: /execute @e[type=Villager] kill @e[r-3.type=Zombie]
Would execute the kill command from the villager.
for example: /execute @e[type=Villager] kill @e[r-3.type=Zombie]
Would execute the kill command from the villager.
1
Use coordinates