The Bug:
Some entities are summoned inside blocks when using spawn eggs against walls.
It's important to note that this issue only affects entities with large hitboxes. Below is a list of these. Please note that this list may be incomplete.
Affected Entities:
Camels
Elder guardians
Hoglins
Iron golems
Horses
Magma cubes
Polar bears
Slimes
Spiders
Turtles
Zoglins
Steps to Reproduce:
Obtain a spawn egg that summons any of the entities listed above.
Use the spawn egg against a wall and observe the entity's behavior closely.
Take note as to whether or not some entities are summoned inside blocks when using spawn eggs against walls.
Observed Behavior:
Entities are summoned inside blocks which occasionally causes them to suffocate.
Expected Behavior:
Entities would not be summoned inside blocks. They should instead be summoned adjacent to blocks.
Related issues
is duplicated by
relates to
Attachments
Comments


This behaviour does not occur with normal Guardians.
Can confirm in 20w48a.
Can also confirm in 20w49a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Video attached.
Can confirm in 21w07a.
Can confirm in 21w11a.
Can confirm in 1.17.1.

Can confirm in 21w42a.

Can confirm in 1.18.1. Iron Golems naturally spawned can also suffocate when too close to a block.
Can confirm in 1.18.2. @unknown, that is a different issue and is currently being tracked at MC-189332 🙂
Can confirm in 1.19 and 22w24a.
Can confirm in 1.19.2.
Hello; please could I request ownership of this ticket? There are some amendments I'd like to add to state the overall problem here as I feel it's not concisely clear. The current reporter has been inactive for over five years as well and I'm willing to refine this ticket and keep it up-to-date. Thanks in advance.

Done.

In 1.21.1.

This issue also affects large salmon when removed from a bucket. Sometimes, they suffocate if placed directly next to a block. Should I create a new ticket for this?
I’ve decided to create a separate ticket (MC-279909) since the behavior of where mobs spawned from buckets spawn differs significantly from spawn eggs.

can confirm in 1.21.4

can confirm in 25w04a