mojira.dev
MCPE-140145

Iron golems spawn on blocks they should not

In 1.17.30.23 Beta iron golem spawn logic was changed to better match Java Edition. However, iron golems now spawn on blocks they should not spawn on, including signs, stairs, fences, fence gates (even open fence gates), and beds.

Steps to reproduce

  1. In a void or high in the air, make a 5 x 8 platform, then place 20 beds on the platform, and destroy the platform so you have just the beds.

  2. Nearby to the side, setblock a solid workstation (fletching table, smithing table), then a villager on top, and wait for it to link.

  3. Repeat step (2) nine more times with the workstations a block apart in a row, so that you have 10 villagers who can work and cannot move or bump each other.

  4. Wait.

  5. A couple blocks above the beds, fill a 12x12 area with signs (you'll need a row of blocks on one side to attach them to). Then wait.

  6. Repeat step (5) with stairs (right side up), fences, and fence gates,

Expected results

No iron golems spawn. Iron golems would only spawn on solid blocks and maybe on full-top-surface blocks like top slabs or upside down stairs.

Actual results

Iron golems spawn in steps (4) and (6): on beds, signs, stairs (right side up or upside down), fences, and fence gates (open or closed).

Analysis

It appears that the newly-added logic that checks for spawnable blocks is incomplete. According to the wiki entry on iron golems, Java checks for two block properties when attempting a spawn:

  1. whether the block is made of a solid-blocking material, and

  2. whether the block has a solid top-surface.

The logic implemented in Bedrock 1.17.30.23 beta appears to include only the first check. Thus signs and open fence gates are spawnable because they are made of wood (a spawnable material) even though they have no collision. And fence gates are wood, beds are wood, and stairs are wood or stone, so they are spawnable for golems even though they do not have a full-size full-height top surface. (I assume "solid top surface" means a full-size and full-height top with collision, since that's the kind of surface that is required for environmental mob spawning.)

Linked issues

Attachments

Comments 10

Can confirm, this is not an issue in 1.17.11 or 1.17.30.22.

Spawning on stairs combined with the column-based spawning in the new logic will have the impact of making iron golems spawn on rooftops in naturally-generated villages.

They also spawn trapdoors and iron bars.

1.17.30 they will spawn on top of beds as well. 

Temporary workaround for iron farms is to place glass or glass panes over the beds.

Michelle Wainwright

I've just placed glass above the bed on my iron farm and a golem still spawned on top 

M. Syarief Hidayatulloh

I confirm this issues. Iron golem now spawn on top of the beds

I just logged on to make a video, and saw a bunch of golems on top of the beds in my iron farm

Please read the report before commenting. Beds were already mentioned as spawnable, the report is already confirmed, and the bug is indeed already fixed in the latest Beta.

Golems still spawn on lightning rods in 1.17.41. I opened a new bug report MCPE-147706 for this issue. 

Christian Roberts

So fixed bug now was good Not make ruins farm 🙂

Playing version 1.18.2 Bedrock, an iron golem just spawned on top of a tree. There was no way to reach the top of the tree from the ground, the tree was half a dozen blocks away from my iron farm edge, and the top layer of the tree was all leaves. As far as I know, this should be impossible.

Spencer: if you can reproduce spawning on top of trees, please create a new ticket with steps to reproduce.

GoldenHelmet

(Unassigned)

603521

Confirmed

Multiple

1.17.30.23 Beta, 1.17.30, 1.17.34

1.17.40.21 Beta, 1.17.40

Retrieved