mojira.dev
MC-122385

Position arguments aren't checked properly

Position selector arguments don't seem to be checked. For example, running /execute if entity @e[x=0,y=0,z=0] run say Hi in a new world should not do anything, as there is no entities at 0,0,0. Yet running this command still causes the player to say Hi.

Comments 2

You need to quantify your search using a distance (or dxyz). Otherwise, you're essentially just changing the origin of the search, without defining the bounds.

Ah. Then I must have misunderstood the position arguments to begin with. I figured that without a distance argument it would just check for entities at that position. Interesting.

Ely G

(Unassigned)

Unconfirmed

Minecraft 17w47b

Retrieved