When I run the command "/execute @a ~ ~ ~ /tp @e[type=Chicken] ~ ~ ~-10"
The chicken I spawned in with a spawn egg moves 10 blocks from it's current position, not 10 blocks from the player.
I hope to see this fixed as it is required for the mini game I am creating.
Thanks - Bom
(If I have written this command wrong and this isn't a bug, please let me know the correct way of putting it)
Comments 5
Thank you Kumasasa!
Do you know of a way to achieve what I am trying to, teleport the chicken 10 blocks away from the player, or should I ask this somewhere else?
Sorry, no.
AFAIK there is no way to bring 3 coordinates in relation: The command block issuing the command, the player and the chicken.
/tp @e[type=Chicken] @p
teleports the chicken at the coordinates of the player, but not 10 blocks away.
For feature suggestions or changes please see: Minecraft Suggestions on Reddit.
"teleports the chicken at the coordinates of the player, but not 10 blocks away."
Dear Kumasasa, with the command you used it is indeed not possible to teleport a chickn 10 block from the player. Though this should be possible with the execute command in the way charlie proposed it (although it should be tp instead of /tp since you already used the slash in /execute, but neither of both work). I tried it to and i can confirm it doesnt work. I would ask to reopen this thread since this is a bug.
That's exactly what the execute command does, it executes the "tp" on behalf of the chicken, that means as if the chicken would've typed the command by itself.