Goat

Goats are neutral mobs found in mountains.

Spawning
Groups of two to three goats spawn above opaque blocks on mountains at the surface at a light level of 7 or higher. Goats spawn individually and more uncommonly after the world generation. There is a five percent chance for a goat to spawn as a baby goat. When a goat is spawned or born, it has a 2% chance of being a screaming goat. They look identical to all other goats, the only difference being that they make screaming sounds and ram more often.

Drops
Goats drop 1 when struck against a solid block (can be dropped two times per goat).

Adult goats drop upon death when killed by a player or tamed wolf, while  is dropped upon successful breeding.

Killing a baby goat yields no items nor experience.

Behavior
A goat jumps up to 10 blocks high into the air. This usually happens if the goat is trying to cross an obstacle like a small hole in the ground or powder snow. Once a goat performs its long jump, it cannot perform another for 30-60 seconds.

Goats take less fall damage and avoid walking into powder snow. While avoiding walking over powder snow, they also might jump over it, sometimes even in a narrow jumping area.

Every 30-300 seconds, if a goat has seen a mob (except for other goats and shulkers) or player who has not moved during the checking interval, it attacks by ramming from up to 16 blocks away. Goats need 4 blocks of empty space between them and a potential target to ram them. After choosing something to ram against, the goat performs a small charging animation, then runs quickly toward the target, dealing nine blocks of knockback from the collision. If the attack knocks the player off a mountain peak, the player can suffer a damaging or even fatal fall. Baby goats deal a knockback of 4.5 blocks. In the case that a goat is a screaming goat, its ramming cooldown is only 5-15 seconds.

When attacked, goats do not attack back, they flee like most passive mobs. But since they can deal direct damage to the player under certain conditions, goats are deemed neutral mobs.

Milking
A goat can be milked by a bucket on it, yielding a milk bucket.

Breeding
Goats follow players that are within ten blocks who are holding wheat. If adult goats are fed wheat, they enter love mode and breed; the player is granted 1–7 experience. The time of growth of a baby goat is shortned by ten percent when each wheat is fed.

Sounds




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

Trivia

 * Goats are the fifth mob that were added to a beta before a  snapshot. The first four mobs this happened for were dolphins, pandas, cats and piglin brutes.
 * Goats are the first neutral mob that does not fight back after being hit. Instead, they are aggravated by the player standing still.
 * The model for goats was made in Blockbench.
 * Goats are one of the 4 mobs that were added as a result of the community voting for it, the others being the phantom, fox, and glow squid.
 * Goat sounds were recorded from real goats. The same is true for pandas and dolphins.
 * Some of their sounds come from the goats in Minecraft Dungeons.