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

Target selector arguments r, rm are counting distance from middle of bottom face of block instead of position of entity running a command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3
    • None
    • Community Consensus

      Executed command from command block minecart, as player and via /execute with target selector arguments r/rm are counting distance from middle of block instead of position of entity. This is the case of unexpected behaviour of selector r=X.
      Example:
      Run a command in command block minecart: /kill @e[r=0] when minecart is in center of block. Minecart will vanish as intended.
      Run the same command, when minecart is in the edge of block. Minecart will not disappear.
      This is inconsistent and should be fixed.

      in 1.9 pre 3 r=0 can't kill anything, even an executer and entities in the same position.

        1. eyJ1cmwiOiJodHRwOi8vaS5pbWd1ci5jb20vV25lQkp5cy5wbmcifQ.LMEHtZaKBgEELGeuHCEtluIebDU.png
          eyJ1cmwiOiJodHRwOi8vaS5pbWd1ci5jb20vV25lQkp5cy5wbmcifQ.LMEHtZaKBgEELGeuHCEtluIebDU.png
          97 kB
        2. 7HB5egK.png
          7HB5egK.png
          733 kB
        3. arrow-r-fail.png
          arrow-r-fail.png
          1.23 MB
        4. 2016-02-23_10.13.06.png
          2016-02-23_10.13.06.png
          61 kB
        5. 2016-02-23_10.13.13.png
          2016-02-23_10.13.13.png
          67 kB
        6. 2016-02-23_10.19.17.png
          2016-02-23_10.19.17.png
          153 kB
        7. 2016-02-23_12.33.52.png
          2016-02-23_12.33.52.png
          77 kB
        8. 2016-02-23_12.34.12.png
          2016-02-23_12.34.12.png
          83 kB
        9. 2016-02-23_12.35.59.png
          2016-02-23_12.35.59.png
          222 kB
        10. 2016-02-23_12.36.03.png
          2016-02-23_12.36.03.png
          221 kB

            Unassigned Unassigned
            Toboe_Irbis [Helper] MichaƂ
            Votes:
            36 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: