mojira.dev
MC-150333

Stray cats spawn inside non full blocks

The bug
Stray cats can spawn inside non full blocks (like stairs, slabs, chests, etc) and some can suffocate them (like dirt path).

To reproduce:

  1. Create a Superflat world in peaceful mode with no villages (Generate structures: disabled)

  2. Stay still on the ground and use these commands:

    /tick freeze
    /fill ~50 ~-1 ~50 ~-50 ~-1 ~-50 minecraft:oak_slab[type=top]
    /fill ~2 ~-1 ~2 ~-2 ~-2 ~3 air
    /fill ~2 ~-2 ~2 ~-2 ~-2 ~2 white_bed[part=foot,facing=south]
    /fill ~2 ~-2 ~3 ~-2 ~-2 ~3 white_bed[part=head,facing=south]
    /summon villager ~ ~ ~2 {Passengers:[{id:"minecraft:villager",Passengers:[{id:"minecraft:villager",Passengers:[{id:"minecraft:villager",Passengers:[{id:"minecraft:villager"}]}]}]}]}
    /execute as @e[type=minecraft:villager] run ride @s dismount
    /setblock ~ ~-2 ~ repeating_command_block{powered:1b,Command:"/execute at @e[type=minecraft:cat] run setblock ~ ~1 ~ minecraft:diamond_block"}
    /setblock ~ ~-1 ~ minecraft:stone_pressure_plate
    /tick unfreeze
  3. Wait for a message in chat about a block begin changed.

    • ❌ If the message appears, look for a diamond block around you and see if under it there is a cat trapped inside a slab.

What I expected to happen was...:
A cat spawning above the slab or not spawning at all.

What actually happened was...:
A cat spawned inside the slab.

Linked issues

Attachments

Comments 26

Both of my Cats Spawned as Kittens, and By the time I found them, They had grown to stray cats. On Minecraft Bedrock using Moto X4 under Android Pie

This is the bug tracker for Minecraft: Java edition, you can find the bug tracker for Pocket Edition / Bedrock Edition here: MCPE bug tracker project

Confirmed for 20w51a.
Cats also spawn inside dirt paths and suffocate in them. It happens often in villages.

Affects 21w03a.

Affects 21w10a

16 more comments

Can confirm in 1.18 and 1.18.1 Pre-release 1.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

Can confirm in 22w46a.

I would like to request ownership of this ticket as the current reporter has been inactive since 2019.

Joker Rin

SoloAlguien

(Unassigned)

Confirmed

Mob spawning

Minecraft 1.14, Minecraft 1.14.3, 1.16.4, 20w51a, 21w03a, ..., 24w12a, 1.21.1, 1.21.3, 24w46a, 1.21.4

Retrieved