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

Selector doesn't function correctly when both radius and x y z dx dy dz are specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w21b
    • None
    • Windows 7
    • Unconfirmed

      When there is a selector that uses both r=, or rm=, and the x y z dx dy dz coordinate specifiers, the command functions incorrectly.

      Test:

      1.Spawn a pig
      2.Use a command such as

      /tp @e[r=10,x=-500,y=-500,z=-500,dx=1000,dy=1000,dz=1000] ~ ~4 ~.

      Make sure the pig is in a radius of 10. This should have teleported the pig up 4 blocks.
      3.The result is that the pig is not teleported at all even if within range and within coordinate range. If you increase the radius greatly possibly to the 500s or more, it does work, but with lower numbers nothing is teleported despite being in range.
      4.Similarly if rm is used, it will not function correctly ether.

      /tp @e[rm=100,x=0,y=0,z=-700,dx=500,dy=500,dz=500] ~ ~4 ~

      This should result in teleporting all entities above 100 blocks away from the player 4 blocks up.
      5.The result is that the pig that is less than 100 blocks from you is still teleported up. However, again if you use 500 or more for rm=, it functions normally.

      Note: I am currently in a negative Z coordinate, but unsure if this effects this problem.

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: