mojira.dev
MC-52547

Selectors on commands run by /execute are not run as if by /execute's target

When run directly by a player the following command works as expected.

Kills Creepers in a large area around the player: /kill @e[type=Creeper,x=-128,dx=256,z=-128,dz=256,y=0,dy=256]

Selectors on commands run by execute are not run as if by the target, but by whatever is running the execute command instead.
Kills Creepers in a large area around the executor (e.g. a command block) and not all players: execute @a ~ ~ ~ kill @e[type=Creeper,x=-128,dx=256,z=-128,dz=256,y=0,dy=256]

Comments 3

Is this still a concern in the current Minecraft version 14w30c or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Just tried it in 14w30c and it seems to be fixed now, thanks for reminding me to check again.

Glad to hear and thanks for letting us know

migrated

(Unassigned)

Unconfirmed

Minecraft 14w11b

Minecraft 14w30c

Retrieved