Iron golem spawning inside blocks
Linked Issues
is duplicated by3
Created Issue:
Villager Golem generates in wrong place
Villager Golems sometimes can generate inside a block that is not transparent, for example, stones. Then it will fall down inside the block if the below is empty, if the below is another non-transparent block, it will be trapped inside that block.
Environment
java.
java.
VillagerGolem generates in wrong placeIron Golem generates in wrong place
Iron Golemgenerates in wrong placeIron Golem spawning inside blocks
is duplicated by
Villager Golems sometimes can generate inside a block that is not transparent, for example, stones. Then it will fall down inside the block if the below is empty, if the below is another non-transparent block, it will be trapped inside that block.
IronGolem spawning inside blocksIron golem spawning inside blocks
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
relates to
relates to
The bug
Iron golems can spawn in blocks which are considered as not normal cube (normal cubes are: state.getMaterial().isOpaque() && state.isFullCube() && !state.canProvidePower()).
This makes them spawn in slabs, glass, farmland, grass path, ...
How to reproduce
- Create village with villagers
- Fill all air blocks at the village center with for example glass
- Wait for an iron golem to spawn
Code analysis
Based on 1.12.2 decompiled using MCP 9.40
The method net.minecraft.village.Village.isAreaClearAround(BlockPos, BlockPos) only considers a spawn location as invalid if the blocks at this position are net.minecraft.block.state.IBlockProperties.isNormalCube(), it should probably instead use logic similar to the one used in net.minecraft.world.WorldEntitySpawner.findChunksForSpawning(WorldServer, boolean, boolean, boolean).
Duplicate of MC-130270, a fixed issue.
Please use the search function next time.
This bug may have been introduced with the fix of MC-130270 Golems were spawning inside blocks.
In response Tyler Hunting's statement "...iron golems spawn in unintended places...", I built a farm with a ring of doors 32 x 32 square and watched golems spawn outside the doors.
According to the Wiki, "Iron golems will spawn in a 16×6×16 area, centered vertically and horizontally between the bases of the 21 or more valid doors in a village if it has at least 10 villagers."
The 16×6×16 area statement is completely wrong and has been for the last few versions. It would be helpful if the wiki could be updated after this bug is fixed.

















Weird! Iron Golems can be generated inside a door in the new snapshot........
Definitely an issue for iron farms.
I've noticed that iron golems aren't spawning altogether now, have afk'd near spawner for hours. Door count and Villager count are met.
same problem in 1.13 pre1
Affects 1.13 pre-1, please update this ticket.
It's very frustrating, I have a little iron farm and now I have to suffocate all of the fail spawned iron golems... :|
Iron Golums spawn inside any block. (solid, glass, slabs, stairs, doors etc) This has been happening since at least version 1.9 but seems to happen more frequently now.
Affects 1.13 pre-2 too.
1.13 Pre-2 I tried expanding the size of the spawning area in my iron farm only to have the golum spawn with his head inside a solid block. This is seriously messed up. It even happens in normal villages when I increased the number of doors. See screenshot.
same problem on my pre1 server
There is one way to solve this problem:
just build another layer 3 blocks lower than the spawning floor, the iron golem will drop down to this new layer and can be collected by water.
Also, you should add a soild block out of the door to avoid the iron golem spawn inside the door.
Sorry but that does not solve the problem, they don't fall through. The golum gets stuck in the floor, wall, ceiling, door, glass blocks, half slabs. They apparently just spawn randomly anywhere within the spawning area without regard to what's there.
It would greatly help testing to have access to a map with a spawner built that has these issues
I have a map with this occurrence, but the file has 150Mb, how can I send it?
https://drive.google.com/open?id=1oNjsyCukx99oWNQsvmHsvjxySy36rnHs
Here is a zip file with a world. An Iron farm with a golem stuck in it is where my player is currently located
Another example in picture
A1 - inside glass
A2 - inside glass
A3 - inside glass
A4 - inside rock
Iron Red in left, Died alone
the problem is the gap ( A1, A2,A3 and P2 )
may be the same problem reported in
MC-69919of 2014Not fully fixed in 1.13-pre4. Iron golems momentarily spawn in blocks then remove themselves.
Video: bug.mp4

World download: MC-130270.zip
This currently happens on Xbox (Bedrock) version 1.8. I have a small village I created from a couple of cured zombie villages right by my base and at least 50% of the time when they spawn a golem it spawns with from the waist down inside the garden dirt block.
When this happens they do not remove themselves they are permanently stuck inside the blocks until killed.