Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269771

When summoning a sleeping cat or ocelot, it only remains lying in the bed for 1 tick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w12a
    • None
    • Confirmed
    • Commands, Mob behaviour

      If you summon a sleeping cat or ocelot, it will only visually appear lying in the bed for 1 tick. Subsequently, it visually stands up and resumes its normal hitbox, even though it remains technically sleeping. This can be confirmed by damaging it, causing the cat or ocelot to be teleported to its wake-up position.

       

      Reproduction steps

      1. /tick rate 1
      1. /time set midnight
      1. Position a bed with its foot at coordinates 0 -60 18
      2. /summon minecraft:cat ~ ~ ~ {SleepingX:-1,SleepingY:-60,SleepingZ:18}

        (You have the flexibility to modify the command coordinates if you've positioned the bed elsewhere.)

      1. /summon minecraft:ocelot ~ ~ ~ {SleepingX:-1,SleepingY:-60,SleepingZ:18}

        (You have the flexibility to modify the command coordinates if you've positioned the bed elsewhere.)

      1. Press F3+B
      2. Damage the cat/ocelot

      Observed: The cat and ocelot only remained lying in the bed for 1 tick. After standing up, damaging them resulted in teleportation to the waking up position, indicating they were still sleeping.
      Expected: The cat and ocelot would remain lying in the bed even after 1 tick.

        1. sleeping_cat_issue.mp4
          8.31 MB
          Pro of the best minecraft game: 1.8!

            Unassigned Unassigned
            NoUser No User
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: