Mojira Archive
MC-273197

distance, dx, dy, and dz don't work outside -8388608 <= y < 8388608

The selector parameters distance (except when only a minimum distance is specified such as distance=x..), dx, dy, and dz don't succeed for any entity when executing at a position outside the range -8388608 <= y < 8388608.

(8388608 is 2^23.)

Reproduction steps:

/summon interaction ~ 8388608 ~

/execute at @e[type=interaction] run say @e[type=interaction,dx=0]
# says nothing

/execute at @e[type=interaction] run say @e[type=interaction,distance=..1]
# says nothing

/execute at @e[type=interaction] run say @e[type=interaction,distance=0..]
# says Interaction

(The issue is not unique to execute at; you can reproduce this with execute positioned as well, or by teleporting there and avoiding execute entirely.)

Won't Fix

Grant Gryczan

2024-06-10, 07:53 AM

2024-06-11, 07:19 AM

2024-06-11, 07:19 AM

3

1

Community Consensus

Commands

1.20.6

-