from web site
To defend your village and its inhabitants against any threat, make an Minecraft Iron Golem. These imposing guards can defend the buildings and villagers against hostile mobs in Minecraft (opens new tab) like zombies or skeletons or even raids by villagers. Iron Golems, unlike most other mobs in Minecraft can be created. They also naturally spawn in villages. Here's how to make them and how they work.
In order to make a Minecraft Iron Golem, you don't need to use a Crafting Table as you would to make the majority of items in the game. Instead, you'll have to arrange blocks in a specific order.
four Iron Blocks (each one containing nine Iron Ingots in an Crafting Table) and one pumpkin in Java Edition it must be a Carved Pumpkin, Jack O'Lantern or a Jack O'Lantern. In Bedrock Edition it could be any regular pumpkin. Put the Iron Blocks in a T-shape and then put the Pumpkin at the top and in the middle, so that it appears like a bizarre iron scarecrow. Use the above picture for an example!
If there aren't any connecting blocks (other than the floor it was on), placing the Pumpkin last will trigger an Iron Golem spawn. You can repeat this procedure as many times as necessary to build your own army.
Protect yourself better with Minecraft Netherite armor
Iron Golems are sworn to protect players and villagers, provided you don't attack them. They're classified as neutral mobs so, unlike cows, pigs and the like Iron Golems will not leave you alone but will attack you if you attack them.
MINECRAFT SERVERS LIST
When an Iron Golem is created inside the village it will slowly wander around, patrolling the area. If it's not in the village it will make its way towards the nearest one, possibly fighting hostile mobs on the way. If an Iron Golem takes damage, the player can heal it by using an Iron Ingot on it.
If you've got enough Iron and have a village or base you'd like to protect, Iron Golems are the way forward. They aren't as named like normal pets, unfortunately. If you're considering having pets, you may be interested in knowing how to manage Minecraft's foxes.
Minecraft Lightning Rod
Give me a game, and I will write every "how-to" I can. Or, I'll die trying. If I'm not playing a game to write guides on, you'll see me racing around the track in F1 or flinging balls around on my phone in Pokemon Go, pretending to know what I'm doing in Football Manager or clicking on heads in Valorant.