Carrot

A carrot is a food item that can be eaten by the player.

Zombies
Zombies, husks, and zombie villagers have a 2.5% chance of dropping either an iron ingot, carrot, or potato when killed by a player or tamed wolf. This is increased by 1% per level of looting. This gives carrots the following chances of dropping:
 * $1/120$ (about 0.83%)
 * $11/600$ (about 1.83%) with Looting I
 * $17/600$ (about 2.83%) with Looting II
 * $23/600$ (about 3.83%) with Looting III

Farming
Mature carrots crops drop 1 to 5 carrots (about $2 5/7$ per crop harvested on average). Using a tool enchanted with fortune increases the maximum number of carrots dropped by 1 per level. A carrot can be on farmland to plant a carrots crop.

Usage
To eat a carrot, press and hold while the carrot is selected in the hotbar. Eating a carrot restores hunger and 3.6 hunger saturation.

Breeding
Carrots can also be used to breed and attract pigs and rabbits.

Villagers can pick up carrot items to become willing, which will allow them to breed. Villagers require 12 carrots to become willing.

Trading
Novice-level Farmer villagers have a 25% or 40% chance to buy 22 carrots for an emerald.

Composting
Placing a carrot into a composter has a 65% chance of raising the compost level by 1.