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

Cross-dimensional @s selector succeeds despite world-binding parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w32a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w44a, Minecraft 19w02a, 1.14.4, 19w40a, 19w46b, 20w17a, 1.16 Pre-release 5, 1.16.1, 20w27a, 1.16.3, 1.16.4, 20w49a, 21w03a, 21w06a, 1.18.1, 1.19.2, 1.20.2
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      The bug

      World-binding selector arguments x y z dx dy dz distance will restrict selector results to entities in the dimension the command context is executing from. However @s is not restricted, and it will be found regardless of the presence of world-binding arguments if the sender dimension differs from the context dimension.

      How to reproduce

      1. Enter the overworld.
      2. /execute in the_nether unless entity @a[x=0]
        →   Test passed
      3. /execute in the_nether unless entity @s[x=0]
        →   Test failed, count: 1

            Unassigned Unassigned
            tryashtar [Mod] tryashtar
            Votes:
            18 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              CHK: