The Bug:
Discovered while testing MC-190551 and MC-198256.
When a player enters a bed, they constantly switch between being on the ground and in midair. The value of OnGround
changing between 1b and 0b confirms this.
Steps to Reproduce:
Put the following commands into two repeating command blocks:
title @a[nbt={OnGround:1b}] actionbar {"text":"On Ground"}
title @a[nbt={OnGround:0b}] actionbar {"text":"Midair"}
Set the time to night with the following command:
/time set night
Place a bed and enter it.
❌ TheOnGround
is continuously changing between 1b and 0b.
Observed Behavior:
The player is constantly switching between being on the ground and in midair when in a bed.
Expected Behavior:
The player stays either on ground or in midair when in a bed.
This issue is likely related to MC-148370 and MC-19830.