[MC-3927] Iron golems spawning in slabs, glass, farmland and grass path Created: 28/Nov/12  Updated: 29/Apr/20  Resolved: 01/Aug/18

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.5, Minecraft 1.7.2, Minecraft 13w48a, Minecraft 13w48b, Minecraft 13w49a, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.9, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w40a, Minecraft 16w41a, Minecraft 1.12.2, Minecraft 1.13-pre1, Minecraft 1.13-pre6
Fix Version/s: Minecraft 18w30b

Type: Bug
Reporter: matthew Assignee: Unassigned
Resolution: Fixed Votes: 21
Labels: iron_golem, spawning

Attachments: PNG File 2013-11-26_19.00.31.png     PNG File 2013-12-09_18.46.30.png     PNG File 3 Iron Golems in ground.png     PNG File Untitled.png    
Issue Links:
Cloners
is cloned by MC-148955 Iron golems can spawn inside of non-f... Resolved
Duplicate
is duplicated by MC-40992 Iron golems can spawn through slabs a... Resolved
is duplicated by MC-42117 Iron golems spawn in blocks Resolved
is duplicated by MC-55312 Golems spawn in Glass Resolved
is duplicated by MC-67816 the Iron Golem appear through the glass Resolved
is duplicated by MC-69919 Iron golems spawning inside of glass Resolved
is duplicated by MC-96259 Mobs Spawning and teleporting into pa... Resolved
is duplicated by MC-97551 Irom golems spawn in solid block Resolved
is duplicated by MC-98150 Iron golems spawn even with heads in ... Resolved
is duplicated by MC-99969 Iron Golems spawns gliched in ground ... Resolved
is duplicated by MC-101293 Iron golems spawning in path blocks Resolved
is duplicated by MC-101916 Iron Golem Dirt Path Spawn Resolved
is duplicated by MC-102602 Iron Golems spawn in the ground Resolved
is duplicated by MC-130306 The iron golen of the farm are spread... Resolved
is duplicated by MC-130502 Iron Golem can be generated inside door Resolved
is duplicated by MC-131248 Iron Golem spawns a block too low. Resolved
is duplicated by MC-131263 Iron Golem Spawn on Glass Resolved
Relates
relates to MC-130270 Iron golem spawning inside blocks Resolved
relates to MC-135128 Iron golems don't spawn inside of slabs Resolved
CHK:
Confirmation Status: Confirmed

 Description   
Risk of confusion

This report describes only iron golems spawning inside non-opaque non-full cubes.

See MC-130270 for them spawning even inside opaque full cubes, which started during the 1.13 snapshots.

This issue reappeared in 1.14, see MC-148955 for more details.

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

  1. Create village with villagers
  2. Fill all air blocks at the village center with for example glass
  3. 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).



 Comments   
Comment by Fabian Röling [ 24/Nov/19 ]

Then please create a new report with exact reproduction steps for that version.

Comment by Patrick Callahan [ 24/Nov/19 ]

In 1.14.4 Golems are spawning in farmland and it's really annoying - it would be nice to have a command to stop any certain mob from spawning at all.

Comment by Aidan Oh [ 01/Aug/18 ]

I don't know about those blocks, but it can be easily tested by using a large multi village iron farm and placing the glass/farmlang on top of a solid, opaque spawning platform (allowing for the golems to spawn there) to see if the golems spawn within the glass/farmland blocks.

Comment by [Mod] Neko [ 01/Aug/18 ]

Are glass, farmland, and grass paths fixed as well?

Comment by Aidan Oh [ 01/Aug/18 ]

This should be marked as Fixed, I can confirm that iron golems no longer spawn in slabs. Also the bug report MC-135128 that stated that golems could no longer spawn in slabs has been marked as Works as Intended, thus proving Mojang has intentionally fixed this bug!

Comment by [Mod] Neko [ 29/Jul/18 ]

According to MC-135128, this has been fixed in 18w30b. Can anyone confirm?

Comment by Quinn Roundy [ 08/Jul/18 ]

Can confirm this happens in 1.13-pre6 . I attempted to place glass panes alternating blocks to fix problem but they are either spawning on the panes or diagonally between them. World was created in 1.13 pre6 never loaded in any other versions.

Comment by Tanisha Angelia [ 31/May/16 ]

Now that they are having villages generate with grass paths rather than gravel roads this issue need fixing more than ever...

Comment by matthew [ 26/Apr/16 ]

I just want to say it's been fun watching this thread gain and lose interest over the past 4 years since I submitted it, I doubt it's ever going to get fixed though.

Comment by Debatra [ 12/Apr/16 ]

You can pull it out of farmland with a lead if you can fly or get some ladders close enough. Haven't tested with other blocks. Still needs fixing though.

Comment by Seamus Callaghan [ 30/Mar/16 ]

It looks like golems are spawning on rails too, but possibly aren't spawning in running water. I built an iron farm, and they're only spawning in one specific 1x2 spot which isn't on the spawn platforms. Not sure if this is a separate issue or a related one.

Comment by Aaron Atkins [ 30/Mar/16 ]

1.9, this also occurs on farmland, and on paths created by the shovel.
I have a screenshot of it happening on the path if needed.

Comment by Trent [ 20/Mar/16 ]

I have been testing this further, and I have found that if I move that entire section of the world down 1 block (using a clone/move command), the issue goes away. In case it's of value I have uploaded the worlds both before and after (I have set the worldspawn, but in case it does not work, go to about 130 70 -1460).

The original world having the issue: http://sillyfrog.com/tmp/Iron_Golem_in_Ground.zip

And the world where I have moved it down one block, and it appears to be fixed: http://sillyfrog.com/tmp/Iron_Golem_NOT_in_Ground.zip

Comment by Trent [ 18/Mar/16 ]

I'm getting a similar issue, but I don't even need half slabs! I have attached an image showing what happens. I have done some experimentation, and found the following:
The Iron Golems will NOT spawn if the dirt is only 1 high (I cleared out 3 high under the dirt, then under the 3 air it is just stone etc). The Iron Golems don't appear to even spawn in the opening (ie: they are not spawning anywhere)

If I put another layer of dirt under the top layer of dirt (as per the image with "3 Iron Golems in ground"), then they spawn again, however half in the dirt so they can't actually move. When this happens I can just walk up to them and hit them with my sword, and they do nothing, unless I get very very close, then they can attack.

This is Minecraft 1.9 final.

Comment by dvdmchl [ 27/Feb/16 ]

It is still a problem in the latest snapshot 1.9-pre4.

Comment by Kumasasa [ 06/Dec/15 ]

Is this still an issue in the current Minecraft Snapshot 15w49b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Bill Milligan [ 15/Feb/15 ]

I found this behavior in cases where I was trying to prevent a golem spawn in a certain area, and attempted to solve this by topping that area with half-slabs and glass blocks but ran straight into this defect.

I've found a workaround for this that seems to work in 1.8.x. Put a solid block underneath the half-slab, at a level at which golems would not be too short in any covered area underneath. Of course now my problem is that the golems are spawning on top of the half-slab (see MC-77620).

Comment by Bob Saggot [ 10/Nov/14 ]

This bug is still present in Minecraft 1.8.

Comment by [Mod] Ezekiel (ezfe) [ 24/Feb/14 ]

Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by KeenWolfPaw [ 09/Dec/13 ]

Confirmed still an issue in 1.7.4.

You can check out the image proof here:
http://i.imgur.com/osB6WUb.png

Edit: Sorry for the late reply, I was waiting to see if any spawned for about 2 hours, which he eventually did. Anyway, if this might help he spawned through 2 slabs, I have a layer of stone, a slab and then another slab floating above that, it seems he spawned through both of them.
Edit 2: For further evidence, you can check out the screenshot of the floor cutaway attached to the bug post for verification.
Edit 3: Grammar.

Comment by [Mod] Ezekiel (ezfe) [ 09/Dec/13 ]

Is this still a concern in the latest Minecraft version 1.7.4? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by KeenWolfPaw [ 09/Dec/13 ]

I'd like to add a bit more info because the main post is hard to follow.

The main issue here is:
If all of the default spawn conditions are met, Iron Golems are able to spawn inside of slabs and glass.

They do require a solid ground block for them to spawn on top of, they still spawn even if half slabs or glass is in the way.

Comment by Afzal Rahman [ 28/Oct/13 ]

Should I open a new issue, or can this be reopened? I have had Golems spawn anywhere there's at least 3 blocks of space. And that includes stairs. And golems don't spawn on stairs, they spawn on the ground below, and thus get completely stuck.

EDIT: Minecraft 1.7.2.

Generated at Sun Jan 12 12:02:51 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.