-
Bug
-
Resolution: Unresolved
-
None
-
1.20.4, 24w12a
-
None
-
Confirmed
-
Block states, Commands
When you summon a sleeping entity into a designated bed using the /summon command, it doesn't update the occupied block status. This implies that you, as the player, can still use the bed for sleeping, allowing both you and the mob to sleep simultaneously in the bed. This bug is easily reproduced with mobs other than villagers. However, with villagers, the update occurs quite promptly. Yet, if you act swiftly enough, you can still sleep in the bed despite the villager already occupying it.
Reproduction steps
/time set midnight
- Position a bed with its foot at coordinates 0 -60 18
/summon minecraft:creeper ~ ~ ~ {SleepingX:-1,SleepingY:-60,SleepingZ:18}
(You have the flexibility to modify the command coordinates if you've positioned the bed elsewhere.)
- Attempt to rest in the bed or inspect it using the F3 key
Observed: You can still sleep in the bed simultaneously with the creeper.
Expected: The occupied block state would be updated to prevent you from sleeping in the bed, as the creeper is already occupying it.