Minecraft wiki entry for Iron_golem_farming, associated text: An iron golem needs an available volume in which to spawn. There must be at least 3 transparent blocks above the spawning surface, and that surface must be solid and flat (but not a bottom slab).