Preventing Iron golems from spawning outside the spawner platform?
I managed to build an Iron golem farm in survival vanilla (1.9). later I realised that golems were spawning outside of the spawning platform. see images below to get the scenario.
For temporary I use suffocation method to kill them and obtain iron.

however soon I plan to prevent them from spawning outside the platform because it is written on wiki
But what can I do to prevent them from spawning?
First I thought of placing half slabs everywhere.(Here I don't know what should be spacing between slabs)
The second thought was to dig the terrain aside the farm (But I don't know how many blocks deep)
EDIT :
I decided to place half slabs. then added dark oak half slabs around the spawning platform. Still again golems were spawning outside the spawner. after few minecraft days, I saw a golem spawned inside a half slab.

Now this leaves only one option digging around the spawner platforms. However I don't know how deep should I dig?.
Best Answer
Try using carpet to stop Iron Golem spawns
Pictures about "Preventing Iron golems from spawning outside the spawner platform?"



How do you stop iron golems from spawning outside the farm?
Any non-air block (including blocks such as snow layers, grass, and water) present in any of the empty spaces prevent the golem from spawning. In Java Edition, the player can place a pumpkin on the four blocks of iron, then shear the pumpkin. The iron golem still spawns like normal.What stops iron golems from spawning?
Iron golems without a village will wander and attempt to find one. You can attach a lead to an iron golem so that they never stray too far away, or attach the golem to a fence post to ensure he does not wander too far. Alternatively you can create a village yourself and spawn iron golems that will stay in the village.How do you make an iron golem stay in one place?
Iron golems don't spawn in lava, on bottom half slabs, on pressure plates, transparent blocks(They can on those covered with water!), on magma blocks, and on blocks with wierd hitboxes (Lantern...)Minecraft Bedrock: How To Fix Your BROKEN IRON FARMS! Tutorial! MCPE PC Xbox PS4
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ryutaro Tsukata, Dayvison de Oliveira Silva, SHOCKPhoto by Szoka Sebastian, Andrea Piacquadio


