mojira.dev
MC-249304

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

  1. Place a stack of two carpets on the ground

  2. 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

[media]

Related issues

Attachments

Comments

migrated
[media]
migrated

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).

DLSDUFER

I agree with @AJ8967, since it would just be suffocating, or stuck

MMK21

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

Avoma

Can confirm in 1.19.

MMK21

(Unassigned)

Confirmed

Platform

Low

Items, Mob spawning

1.17, 1.18.2, 22w11a, 22w12a, 22w14a, ..., 1.20.5 Release Candidate 3, 1.20.5, 24w18a, 24w21b, 1.21

Retrieved