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
2022-03-20, 08:54 AM
2024-07-05, 11:08 AM
10
5
1.17 - 1.21
1.17, 1.18.2, 22w11a, 22w12a, 22w14a, 22w15a, 1.19, 22w24a, 1.19.1 Pre-release 2, 1.19.1 Release Candidate 2, 1.19.1, 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 3, 1.19.3, 23w03a, 23w05a, 1.19.4 Pre-release 3, 1.20.1, 23w33a, 23w35a, 1.20.2, 1.20.4, 23w51b, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 3, 1.20.5, 24w18a, 24w21b, 1.21
-