mojira.dev
MC-253396

Iron golems and cats that spawn within villages can spawn inside of trees

The Bug:

Iron golems and cats that spawn within villages can spawn inside of trees.

In some cases, this can cause the iron golems/cats to take suffocation damage and potentially die.

Here is an example:

Version: 1.19.3

Seed: 5384151718195
Coordinates: /execute in minecraft:overworld run tp @s -2087.54 117.94 -2673.49 -54.24 -5.45

Steps to Reproduce:

  1. Generate a world with the seed provided above and teleport to the given coordinates.

  2. Look closely at the iron golem/cat and the blocks around it.

  3. Take note as to whether or not iron golems and cats that spawn within villages can spawn inside of trees.

Observed Behavior:

Iron golems and cats can spawn inside of trees.

Expected Behavior:

Iron golems and cats would not be able to spawn inside of trees.

Linked issues

Attachments

Comments 6

Does MC-146770 describe your issue?

 That bug is about villagers spawning a block too high and being able to suffocate inside of village house walls, but this bug is about the fact that mobs can spawn inside of trees, likely because the game doesn't realize that the tree is there when the mobs spawn (I'm pretty sure trees are separate from the village structure itself). The iron golem in the seed I found would have suffocated even if it would have spawned one block lower anyway. Because this bug doesn't have to do with the village structure itself and the mechanics of how jigsaw blocks spawn villagers and golems, MC-146770 isn't exactly the same thing.

This actually might be a duplicate of MC-189332.

I've added cats to this ticket since this behavior can also be seen with them.

[media]
Charlotte Eiffel Lilith Buff

Confirmed in 23w14a.

Can confirm for 23w16a

Austminer

(Unassigned)

Confirmed

Platform

Normal

Mob spawning, Structures

cat, iron_golem

1.19, 22w24a, 1.19.1 Pre-release 1, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 2, ..., 1.19.4 Pre-release 4, 1.19.4, 23w14a, 23w16a, 1.21

Retrieved