Fox

Foxes are nocturnal passive mobs that spawn commonly in taiga, giant tree taiga, and snowy taiga biomes. A fox can carry a single item in its mouth, but prefers food over other items.

Spawning
Foxes spawn in taiga, giant tree taiga, and snowy taiga biomes, in groups of 2–4.

5% of them spawn as babies.

Foxes that spawned in a snowy biome are white.

Holding items
Foxes have a 20% chance to spawn (via spawn egg or naturally) with one of the following items in their mouth:

Drops
Upon death, adult foxes drop / when killed by a player or tamed wolf.

Like other baby animals, killing a baby fox yields no experience.

Foxes always drop any items they pick up and are still holding (they cannot drop food that they have eaten, for example) and drop items they spawn with naturally with a 100% chance, so:

If a fox is killed while holding a, then the fox consumes the totem and revives itself instead of dropping the totem.

Upon successful breeding, are dropped.

Behavior
Foxes move quickly like ocelots and flee from nearby players and wolves. However, they do not flee if the player approaches them while sneaking. They are unaffected by sweet berry bushes, taking no damage or speed reduction while moving in them.

Baby foxes follow adult foxes. Breeding two adults with sweet berries produces a kit that trusts the player, but still follows nearby adult foxes. Naturally spawned kits do not trust players.

Attacking
Foxes attack chickens, rabbits, cod, salmon, and tropical fish. Foxes also attack baby turtles on land only. However, foxes don't attack wolves, even if they are being attacked by them. Foxes also may attack mobs that hurt a player they trust. Foxes attack either by running up to the target or by pouncing. A fox prepares to pounce by tilting and lowering its head and lowering its body to become shorter. Then it leaps 2–5 blocks into the air. Foxes can jump over fences and walls. $$, foxes also shake side to side before pouncing and their legs can be seen waving while in midair.

Red foxes prefer to attack chickens, rabbits, and baby turtles, all of which are on land, over cod, salmon, and tropical fish; conversely, arctic foxes prefer to attack cod, salmon, and tropical fish over land-dwelling creatures.

A fox that pounces into a snow layer becomes momentarily stuck, remaining face-down, emitting particles, and returning to normal shortly after.

Foxes swim to attack fish in water for food. Baby foxes following adults into the water cannot swim, and eventually drown.

Foxes attempt to run toward the closest attackable mob, even if attached to a lead.

Foxes that trust the player attack zombies, drowned, husks, zombified piglins, skeletons, wither skeletons, strays, phantoms, silverfish, endermites, spiders, cave spiders, vexes, vindicators, pillagers, ravagers, blazes, endermen and pandas, when they attack the player.

Foxes that trust the player run away from wolves and polar bears.

When attacking phantoms, foxes do not jump to attack.

Sleeping
During the day, if a thunderstorm is not occurring, foxes attempt to find a space with a sky light level of 14 or less and sleep. Block light has no effect on this. While it sleeps, it slowly moves its head up and down. A fox wakes if approached by a player or mob. Foxes do not flee if the player approaches while sneaking until the player gets on an adjacent block.

If the sky light at the fox's position becomes 15 or above, either due to a block above being destroyed or the fox being moved, the fox wakes up.

Foxes can drop and pick up items in their sleep.

Trusting foxes can fall asleep even if attached to a lead.

Foxes do not sleep if they are within 12 blocks of an armor stand.

Screeching
Foxes occasionally make loud screeches during nighttime.

Sitting
A fox sits down sometimes during the day if the fox cannot find a shaded area to sleep. The fox sits only for a short time, then hops back up. Foxes sit down even when attached to a lead or in a boat. Foxes that have not been bred by the player always sit while in the Nether, even while attached to a lead.

Holding items
If any item is on the ground near a fox, it travels to the item and picks it up, and the item appears in the fox's mouth. This behavior is not limited to food and animal products; a fox can pick up any item that the player can pick up. However, they prefer to pick up food items, and if they have already picked up non-food items, they drop the non-food items to pick up food instead. A fox eventually eats any food item it picks up (besides cake) and the fox is affected by any side effects from the food, such as poison or teleportation. For example, if a fox eats an enchanted golden apple, it obtains the absorption and effects of the enchanted apple. If there is a stage 3 or 4 sweet berry bush within a 16 block radius of a fox, it sprints toward the bush and eats the berries, dropping the item it was holding. It is not damaged by the sweet berry bush. If a fox picks up a weapon or an item with enchantments, these items affect the fox's attack as if the fox is wielding the weapon in its main hand, although the item retains its durability when used by the fox. If a fox is holding a totem of undying, it receives the effects after taking fatal damage. If a fox is holding a chorus fruit, it eats the fruit and teleports accordingly. If a fox wields a sword with the Fire Aspect enchantment while attacking a mob on a campfire / soul campfire, it ignites the campfire and does critical damage to the entity.

Villages
During the night, foxes sometimes go to villages. There, they can be seen attempting to attack villager-owned chickens, which can be heard squawking. Snow Foxes go to snow villages, and Red Foxes go to any other type of village.

Breeding
When sweet berries or glow berries are  on two foxes, the foxes breed, producing a baby fox. The baby fox trusts the player that bred it and does not flee from that player as it grows up; however, because baby foxes also follow nearby adult foxes, an adult running away from the player may cause the baby to do the same. A lead can be useful during this time to keep the baby fox from fleeing until it has finished maturing to an adult itself.

If a red fox is bred with a snowy fox, the baby has a 50% chance of being either red or snowy.

Predators
Wild wolves are aggressive toward foxes when within 18/16 blocks. $$, adult polar bears also sneak toward foxes to attack them; $$ adult polar bears attack foxes within 16 blocks. $$, baby polar bears, though normally passive to players, also attempt to attack foxes within 16 blocks.

ID




Entity data
Foxes have entity data associated with them that contain various properties.

Trivia

 * Although a fox appears to hold an item in its mouth, it is technically holding the item in its main hand, therefore anything held affects it, such as a sword increasing its damage or a totem of undying resurrecting it.
 * Foxes are one of the few mobs that can sleep in Minecraft. The other mobs include cats, villagers, and bats.
 * Foxes are one of the only three overworld land mobs that can jump more than one block high without status effects or player input, with the others being Rabbits and Goats.
 * In the real world, some species of fox jump high to catch their prey by surprise, an action reflected in their Minecraft counterpart.
 * Foxes do not pick up items when  is set to.
 * When foxes were being added into Minecraft, a glitch occurred where they looked like boxes.
 * Baby foxes are small enough that when they are swimming, they take drowning damage. This is noticeable when they attempt to attack fish.
 * There is a splash screen "In case it isn't obvious, foxes aren't players" in the game, which was added from the description of the bug.
 * Foxes are one of the 4 mobs that were added as a result of the community voting for it, the others being the Phantom, Goat, and Glow Squid.
 * Foxes are the only mobs to close their eyes while sleeping.
 * Foxes are the first nocturnal mob added to the game.
 * The first and third screeching sounds foxes make are the same. The first sound is the third in reverse, but higher-pitched, and the third is the first in reverse, but lower-pitched.