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
Repeating command with a constant teleport to X Y Z
Chain command after teleport running
/testfor @p {OnGround:1b}
1.13: /execute if entity @p[nbt={OnGround:1b}]
Comparator out of chain command
Run system (start the teleport command FIRST then start the
testfor
command) to see that thetestfor
will always betrue
, even if the teleport puts you in the air. You can check withOnGround:0b
to see that the output will always befalse
.
Linked issues
is duplicated by 5
relates to 1
Comments 8
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.
@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?
Isn't that the opposite of MC-95971?