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

distance argument for @s selector doesn't respect dimension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w14a
    • None
    • Windows 10
    • Unconfirmed

      execute as @a at @s in the_nether if entity @a[distance=0] run say nether
      

      correctly executes for each player in the nether but not for players in other dimensions.

      execute as @a at @s in the_nether if entity @s[distance=0] run say nether
      

      executes for all players regardless of dimension.

      The distance check for @s appears to use the dimension of @s instead of the dimension where the command is being executed to calculate the distance to @s, thus making the if entity clause always true.

      This also occurs when using positioned x y z or no positioning instead of at @s.

            Unassigned Unassigned
            Zacru Jared Neil
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: