Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. 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

XMLWordPrintable

    • Icon: Bug 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

      1. /time set midnight
      1. Position a bed with its foot at coordinates 0 -60 18
      2. /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.

            Unassigned Unassigned
            NoUser No User
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: