When using negative dx & dz values as an entity specifier, the "detection square" has a weird offset from where you execute it;
When using dx=10, dz=10 it will detect you with in a square which is 10x10. (Like it should)
When using dx=-10, dz=-10 it will still detect you within the square, but the size of the square becomes 12x12, and the square will have an offset from the entity you execute it from
Here is a small video showing the bug in action;
(Command used in gif:
/execute as @e[type=armor_stand] at @e[type=armor_stand] run say hi @a[dx=10,dz=10]
/execute as @e[type=armor_stand] at @e[type=armor_stand] run say hi @a[dx=-10,dz=-10]
)
Attachments
Comments 5
It's not related to negative coordinates, the selection box is literally 1 block bigger on the positive sides, I can stand 1 block outside of the range on the positive side with positive values too and it still detects me.
However, aligning the executed location to the block grid (execute align xyz
) makes it behave correctly.
The issue you experience is caused by the armor stand position being X.5 Y Z.5 rather than X.0 Y Z.0; yes, it worked before in 1.12, no that's not a bug; in 1.13 the dx/y/z selector arguments no longer make it snap to the grind by design.
Please do not mark unreleased versions as affected.
You don't have access to them yet.