Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273197

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.6
    • None
    • Community Consensus
    • Commands

      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.)

            Unassigned Unassigned
            GrantGryczan Grant Gryczan
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: