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

Testfor OnGround:1b after teleporting causes check to always output true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • Minecraft 16w39c, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w15a, Minecraft 17w16a, Minecraft 1.12 Pre-Release 2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w48a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 1.13, Minecraft 18w32a, Minecraft 1.13.1, Minecraft 18w50a, 1.15 Pre-Release 2, 1.15 Pre-release 4, 20w49a
    • None
    • Confirmed
    • Commands, Entities

      The bug

      If you have a command that is constantly teleporting you, with a command that constantly checks if you are OnGround:1b after the teleport, the OnGround check will always output as true.

      How to reproduce

      1. Repeating command with a constant teleport to X Y Z
      2. Chain command after teleport running
        /testfor @p {OnGround:1b}

        1.13: /execute if entity @p[nbt={OnGround:1b}]
      3. Comparator out of chain command
      4. Run system (start the teleport command FIRST then start the testfor command) to see that the testfor will always be true, even if the teleport puts you in the air. You can check with OnGround:0b to see that the output will always be false.

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            13 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: