mojira.dev
MC-269776

Summoning entities that are asleep in beds does not update the occupied block state, allowing players to still utilize those beds for sleeping

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
  1. 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.)

  1. 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.

Attachments

Comments 1

[Mojang] Triage Team

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Pro of the best minecraft game: 1.8!

No User

(Unassigned)

Confirmed

Block states, Commands

1.20.4, 24w12a

Retrieved