mojira.dev

Colton Edwards

Assigned

No issues.

Reported

MC-145169 Using @a[nbt={Sleeping:1b}] does not target all sleeping players as expected in snapshots. Works As Intended

Comments

Okay, I wondered if there was a change-- thank you for the update. I'm sorry to take your time on this then!

In this case-- set "gamerule dodaylightcycle false" and then, when sleeping in a bed with time set to night, there is an every-tick function set as "execute if entity @a[nbt={Sleeping:1b}] run time add 120". Time does not advance while a player is in bed. Other commands within the particular function work as expected.

This function does still work as expected in full release version 1.13.1, with time advancing by 120 per tick when sleeping in a bed.

To clarify-- commands assigned with the target of sleeping players do not successfully execute, though they work correctly in release version 1.13.1.