mojira.dev
MC-108209

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

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.

Linked issues

Comments 8

Isn't that the opposite of MC-95971?

No, in 16w39c, by doing this teleport, you are both not placed on the ground (even though the teleport should technically place you on it) thus slightly above it, yet the testfor outputs OnGround:1b, even though you are NOT on the ground. You can also locate the teleport to high in the air and it will still think you are OnGround:1b. Any set X Y Z teleport is at first determined as OnGround:1b even if in the air.

This bug appears in 1.11, 1.11.2, 1.12, 1.12.1 and the 1.12.2 pre-release.

@unknown, versions older than 1.12.1 cannot be added to affected versions anymore as they're outdated. I suppose you meant 1.12.2-pre2?

can confirm for 1.13.1

please fix

Can confirm in 20w49a.

This got resolved as Won't Fix, there's no need to confirm for new versions anymore. 

onnowhere

(Unassigned)

Confirmed

Commands, Entities

Minecraft 16w39c, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w15a, Minecraft 17w16a, ..., Minecraft 1.13.1, Minecraft 18w50a, 1.15 Pre-Release 2, 1.15 Pre-release 4, 20w49a

Retrieved