Mojira Archive
MC-112344

Testing an entity's 'OnGround' NBT when inside certain blocks will return inconsistent results.

When testing an entity's 'OnGround' nbt data while they are standing inside certain blocks such as; cobwebs, berry bushes, and powdered snow, the game will return an inconsistent value at a fairly consistent rate.

Steps to Reproduce:

  1. Run the following command in a repeating command block
    (The player's name will be printed in chat if they are NOT on the ground)
    /say @a[nbt={OnGround:0b}]
    
  2. Stand inside one of the following:
    → Cobweb
    → Berry Bush
    → Powdered Snow
  3. Jump, and wait to return to ground level

Expected & Observed Results:

- The values printed will primarily be empty messages, but on occasion the player's name will be printed (indicating that the return value was false). This happens at a fairly consistent rate.
- The messages displayed in chat would always be empty messages, as the player is on the ground.

Screenshots/Videos:

2023-10-13_17-01-50.mp4

Notes:

Moving around inside the block will actually negate the observed behavior. The player must be standing still for the inconsistent result.

Unresolved

[Mod] Jiingy

Onnowhere

2017-01-08, 09:20 AM

2024-08-08, 09:07 PM

6

9

Confirmed

Entities

OnGround, nbt

Minecraft 1.11.2 - 1.21.1Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w15a, Minecraft 1.12 Pre-Release 2, Minecraft 1.12, Minecraft 17w48a, Minecraft 17w49b, Minecraft 18w50a, 1.15 Pre-Release 2, 1.15 Pre-release 4, 1.16.3, 1.17.1, 1.20.2, 23w41a, 1.20.4, 1.20.5, 1.21.1

-