Mobs in Minecraft are afraid of specific animals and blocks: creepers flee from cats and ocelots from 6 blocks away, phantoms keep at least 16 blocks away from cats, and skeletons avoid wolves. In the Nether, piglins back away from soul fire, and hoglins back away from warped fungus. Endermen teleport away from water, and zombies and skeletons burn in sunlight. We've gathered these behaviors and show how to use them to protect your base.
- Cat or Ocelot: scares off creepers from 6 blocks and phantoms from 16 blocks.
- Wolf: all skeleton variants, foxes, rabbits, and baby turtles keep their distance from it.
- Water: endermen teleport away from it, and rain deals damage to them.
- Soul Fire: passive piglins back away from torches, lanterns and campfires made of soul fire.
- Warped Fungus, Nether Portal, and Respawn Anchor: hoglins avoid them within a 7 block radius.
Cats and Ocelots: creepers and phantoms
According to the Creeper page on Minecraft Wiki, creepers flee from cats and ocelots within a 6 block radius, and faster than they chase the player. Cats and ocelots don't attack creepers themselves. Exception: a creeper that has already started hissing before exploding won't flee until the player leaves the blast radius.
Cats also scare off Phantoms. As stated on the Phantom page, phantoms try to stay at least 16 blocks away from cats, even if there are blocks between them, and on Bedrock they treat ocelots the same way. We explain when and why phantoms even spawn in our article how long does day and night last in Minecraft.
According to the Cat page, creepers and phantoms avoid cats even when they're chasing the player, and in Java cats additionally hiss at phantoms attacking you. You can tell a tamed cat to sit, and then it stays in place, so it works well as a guard at the entrance to your home.
You can tame a cat with Raw Cod or Raw Salmon, and each fish gives a 1 in 3 chance. Cats live in villages, where black cats can only spawn during a full moon, and one black cat lives in every witch hut in the Swamp. We cover the details in our guide how to tame a cat, and you can read about the mob itself on the cat in Minecraft page.
Wolves: skeletons, foxes, and rabbits
Wolves command respect from many mobs. According to the Wolf page on Minecraft Wiki, skeletons and their variants, foxes, baby turtles, and regular rabbits avoid both wild and tamed wolves. Skeleton variants include the Stray, Wither Skeleton, Bogged, and Husk.
As stated on the Skeleton page, a skeleton flees from a chasing wolf until the wolf injures it. Then it turns around and shoots the wolf that reached it.
Wild wolves hunt sheep, rabbits, foxes, baby turtles, and all skeleton variants. Tamed wolves that aren't sitting will attack skeletons and their variants on their own, and otherwise defend their owner. They don't attack creepers, though, so a cat works better against those.
You can tame a wolf with bones, and each bone gives a 1 in 3 chance. You'll find instructions in our guide how to tame a wolf, and a full description of behaviors on the wolf in Minecraft page. Wolves can also attack a llama within a 16 block radius or flee from one at 24 blocks, so don't keep both species in the same pen.
Endermen, water, and sunlight
Endermen aren't afraid of animals, just water. According to the Enderman page on Minecraft Wiki, they teleport away from lava, projectiles, and water. Rain, water, and a thrown water bottle deal 1 point of damage to them, which is half a heart, and during rain endermen keep teleporting until they find a dry spot.
A Carved Pumpkin also protects against endermen. An enderman gets angry when you look into its eyes from up to 64 blocks away, but not when you wear a pumpkin in the helmet slot.
The undead, meanwhile, don't like sunlight. As stated on the Zombie page, zombies burn in direct sunlight unless they're standing in water, in shade, or wearing a helmet, and glass doesn't protect them. Skeletons burn under similar conditions, and in sunlight a helmetless skeleton will search for water on its own.
The Nether: piglins and hoglins
As described on the Piglin page, passive piglins back away from Zombified Piglins, Zoglins, Soul Fire, Soul Torches, Soul Lanterns, and lit Soul Campfires. When chasing the player, they stop caring about soul fire, but still flee from Zombified Piglins and Zoglins. Baby piglins also back away from Wither Skeletons and the Wither. Adult piglins sometimes hunt hoglins, but flee when there are more hoglins than piglins.
Hoglins have their own fears. According to the Hoglin page, they avoid staying within a 7 block radius of Warped Fungus, including Potted Warped Fungus, an active Nether Portal, and a Respawn Anchor. They don't attack a player standing near such a block, and fleeing hoglins can't be bred.
Hoglins live in Crimson Forests, so a few Potted Warped Fungus plants at the entrance to your base in that biome will discourage them from approaching. Soul Torches around your base will scare off passive piglins, but won't stop ones already chasing you. You can read more about both mobs on the piglin and hoglin pages.
Villagers and fleeing from monsters
Villagers in villages also flee. According to the Villager page on Minecraft Wiki, in Java they panic when they see a mob hostile toward them, and flee, sometimes hiding in houses. The panic radius depends on the mob:
- Zombie, Husk, Drowned, Zombie Villager, and Vex: 8 blocks,
- Vindicator and Zoglin: 10 blocks,
- Evoker, Illusioner, and Ravager: 12 blocks,
- Pillager: 15 blocks.
On Bedrock, panic looks different: villagers run in circles around the bed in their house, for example during a raid or after a bell is rung. During a raid, villagers flee to the nearest house, but will only take shelter in one that has a door and at least one bed.
Panic has an upside too. In Java, a villager panicking in a group of three villagers can summon an Iron Golem, provided there's been no golem within a 16 block radius for 30 seconds. On Bedrock, golems appear under different rules: the village must have at least 20 beds and more than 10 villagers per golem, and 75% of them must have worked within the last day.
You can read more about village residents on the villager in Minecraft page.
Sources
- Creeper: fleeing from cats and ocelots (minecraft.wiki)
- Phantom: avoiding cats (minecraft.wiki)
- Cat: taming, spawning, and cat behavior (minecraft.wiki)
- Wolf: mobs that avoid wolves (minecraft.wiki)
- Skeleton: fleeing from wolves and burning in sunlight (minecraft.wiki)
- Enderman: water, rain, and the carved pumpkin (minecraft.wiki)
- Zombie: burning in daylight (minecraft.wiki)
- Piglin: what piglins avoid (minecraft.wiki)
- Hoglin: blocks that repel hoglins (minecraft.wiki)
- Villager: villager panic and golem summoning (minecraft.wiki)