Put the summary of the bug you're having here:
Using @a[nbt={Sleeping:1b}] does not target all sleeping players as expected in snapshots.
What I expected to happen was...:
@a[nbt={Sleeping:1b}] would target all sleeping players.
What actually happened was...:
Commands involving the target selector do not successfully target all sleeping players.
Linked issues
is duplicated by 2
Comments 6
In which cases is this failing? Can you provide a set of steps to enter sleep mode and be missed by that selector?
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.
Ah yes, I can confirm now. However this is intended. The sleeping tag was removed in favor of SleepingX
, SleepingY
, and SleepingZ
Okay, I wondered if there was a change-- thank you for the update. I'm sorry to take your time on this then!
To clarify-- commands assigned with the target of sleeping players do not successfully execute, though they work correctly in release version 1.13.1.