mojira.dev
MC-103934

Some entities are summoned inside blocks when using spawn eggs against walls

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:

  1. Obtain a spawn egg that summons any of the entities listed above.

  2. Use the spawn egg against a wall and observe the entity's behavior closely.

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

Linked issues

MC-102581 Polar bear suffocate when spawned using spawn egg beside a wall. Resolved MC-103383 Polar Bears = Suffocation Resolved MC-114727 Iron Golems suffocate when too close to a wall Resolved MC-136368 Mobs get stuck/suffocate when spawned against wall Resolved MC-137711 Certain mobs will float if spawned in a 1x1 area Resolved

Attachments

Comments 21

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.

11 more comments

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

Sam Bone

Avoma

(Unassigned)

Confirmed

Platform

Low

Hitboxes

spawn_egg

Minecraft 1.10, 1.16.3, 1.16.4 Pre-release 2, 1.16.4, 20w48a, ..., 1.21.4, 25w08a, 1.21.5, 1.21.6, 1.21.7

Retrieved