Using spawn eggs on partial blocks can spawn the mob too high
The bug
When using a spawn egg on the top face of a short block (tested with trapdoors and carpets), the mob will spawn on top of the block above the targeted block, instead of on top of the targeted block itself.
To reproduce
- Place a stack of two carpets on the ground
- Try to spawn a villager on the bottom carpet
Observed behaviour
The villager spawns on the top carpet
Expected behaviour
The villager would spawn on the bottom carpet (i.e. the targeted block surface)
Notes
Adding more carpets won't cause the villager to spawn even higher
Screenshots
Linked Issues
is duplicated by1
- Unresolved
MMK21
- 10
- 5
- Confirmed
Low
- Platform
- Items Mob spawning
1.17 - 1.21
1.17 1.18.2 22w11a 22w12a 22w14a 22w15a 1.19 22w24a 1.19.1-pre2 1.19.1-rc2 1.19.1 1.19.2 22w42a 22w43a 22w44a 22w45a 22w46a 1.19.3-pre3 1.19.3 23w03a 23w05a 1.19.4-pre3 1.20.1 23w33a 23w35a 1.20.2 1.20.4 23w51b 24w07a 24w09a 24w10a 24w11a 24w12a 24w13a 24w14a 1.20.5-pre1 1.20.5-pre3 1.20.5-pre4 1.20.5-rc3 1.20.5 24w18a 24w21b 1.21
Created Issue:
Using spawn eggs on partial blocks can spawn the mob too high
The bug
When using a spawn egg on the top face of a short block (tested with trapdoors and carpets), the mob will spawn on top of the block above the targeted block, instead of on top of the targeted block itself.
To reproduce
- Place a stack of two carpets on the ground
- Try to spawn a villager on the bottom carpet
Observed behaviour
The villager spawns on the top carpet
Expected behaviour
The villager would spawn on the bottom carpet (i.e. the targeted block surface)
Notes
Adding more carpets won't cause the villager to spawn even higher
Screenshots
I agree with @Mention someone by typing their name...AJ8967
relates to
is duplicated by
relates to
This seems to just be MC-249304 which is already triaged.

I think this is working as intended, because it wouldn’t make any sense for the entity to spawn inside an adjacent block (carpet/trapdoor in this case).
I agree with @AJ8967, since it would just be suffocating, or stuck
That is true, however, when another carpet is added on top, the mob spawns within the top carpet instead of in a clear area. In addition, the mob has explicitly been placed by the player, so it should spawn where the player wants it to.
Edit: It looks like the bug has now been triaged by Mojang
Can confirm in 1.19.