Iron Golems are large, strong utility mobs that defend players and villagers. An iron golem can spawn naturally when golems are created by placing four iron blocks in a T shape (as shown in the image), and then placing a carved pumpkin, a jack o'lantern or a pumpkin on top of the center upper block. The pumpkin may be placed by the player, a dispenser or an Enderman, but it must be placed last. It needs space around it to be able to spawn and cannot spawn in a confined area. a village first generates in the world. Iron golems also spawn in villages having at least 21 beds and 10 Villagers, in a 16×6×16 volume around the village center defined by a bed, a bell, or another meeting point. The chance of spawning is 1⁄7000 per game tick, which averages to one every 5 minutes and 50 seconds. Iron golems can spawn provided the blocks it spawns in are non-solid and the block it spawns on has a solid flat top surface. Iron golems can also be found surrounding pillager outposts, trapped inside of dark oak cages. When freed, they help the player by attacking the mobs.