Ocelot

Ocelots are passive mobs that normally spawn in Jungle biomes. They are the second tameable mob to be introduced into Minecraft, the first being Wolves. When Ocelots are tamed, they become "cats", changing to one of three different cat skins. All three are equally likely. Cats will follow the Player and will teleport if they are too far away. Ocelots tend to attack chickens at random. Ocelots and cats do not take fall damage and they will never attack hostile mobs.

Creepers will run away from Ocelots and cats, making them a great defense against creepers; they won't try to get close to any cats, even if attacked and provoked by the player. Sitting cats can be used to ward creepers away from entrances, key points, or even an entire perimeter.

Spawning
Ocelots seem to spawn much like normal passive mobs. Since they are only native to Jungle Biomes, Ocelots will tend to spawn in inaccessible areas, such as inside bushes and trees. They may wander into other biomes that are close to the Jungle Biome, so one may rarely be seen outside of its native biome. You can also spawn Ocelots via Creative Mode with the Ocelot Spawn Egg. They can only spawn on Grass or Leaf blocks, and at layer 63 or higher. They also have a 1/3 chance of not actually spawning, making them somewhat rarer than other passive mobs. However they will never spawn in Peaceful difficulty; to find them the player must be playing on easy (at least). Unlike other passive mobs, wild ocelots (but not tamed cats) can despawn when far enough away from the player.

Appearance
When untamed, these felines have yellow fur with black and brown spots, a gray-black nose, and green eyes. Once tamed, their skin will change to either tabby, tuxedo, or Siamese. Of these, the tabby and tuxedo skins have green eyes, while the Siamese cats have blue eyes. In every case, their tails are in two segments to show curve. A tamed Ocelot is noticeably smaller than an untamed one.

Behavior (wild)
The Ocelot is a mainly passive, 'shy' mob which will not attack the player. Should the player move or look too abruptly near one, it will sprint away. Ocelots are one of the seven mobs with the ability to sprint, the other six being the Player, Endermen, Zombie Pigmen, Wolves,Villager children, and Wither Skeletons. If enclosed and unable to escape, they will stand still until an exit is made, after which they will quickly sprint through. Wild Ocelots will occasionally slowly sneak up on chickens, then proceed to pounce and kill, much like a wolf with a sheep. (They can even kill through a fence if the chicken is against the fence, so take extra steps to secure your chickens when breeding them in or near jungle biomes.) Creepers will actively avoid Ocelots, should they come within a certain radius of the Ocelot. However, this will not deter them from chasing a player, only keeping the Creeper a distance away, and in any case if the Ocelot flees the Creeper will resume its normal behavior. An Ocelot will flee if it comes in contact with a wolf, despite that the wolf will not attempt to attack the Ocelot. Finally, an Ocelot is immune to fall damage, and will show no hesitation about falling great distances.

Taming
Feeding raw fish to an Ocelot will turn it into one of three breeds of Cats, and it will then follow the player (though not as closely as a dog). To tame an Ocelot, several conditions must be met: To begin with, the player's hunger meter must be full, or they will eat the fish themselves. Also, the player can only tame Ocelots when they walk to the player of their own accord. Caging or cornering the animal will not work. Also, make sure that there are no hostile mobs attacking you when you are trying to tame an ocelot.

The player must hold the fish while standing perfectly still and not looking around too quickly. When the fish is held, the Ocelot will slowly approach the player, and when it stops, right-clicking raw fish on the Ocelot will begin to tame it. The Ocelot will begin emitting hearts with the first fish, but is not actually tamed until it changes to one of the three "cat" skins. This is likely to take more than one fish, sometimes up to five.

If Right-clicked and nothing happens, then:
 * The Player is chasing it.
 * The Player is not within 5 blocks of the Ocelot.
 * The Player or the Ocelot is in a minecart.
 * The Ocelot cannot escape (if it is on a structure that is more than 4 blocks high).
 * The Player has already moved or taken damage from a hostile mob.

Behavior (tame)
Once tame, a cat will follow their player, although not as strictly as wolves. Like wolves, and with the same limits, they can teleport to a player who moves too far away (see below). They will no longer be "shy" like the wild ocelots, and will purr or mew frequently. They can be told to "sit" by right-clicking on them, and will also sit on certain things of their own accord (see below). Cats do not fight with tamed dogs, and unlike the dogs, they do not fight hostile mobs. However, they still repel Creepers (whether sitting or not). This can be used to protect players or bases, by stationing sitting cats at exits and entrances, or even around an entire perimeter. Tame cats are still immune to fall damage, and their behavior reflects this. However, they aren't immune to anything else, and they are distinctly incautious. Besides setting themselves afire by wandering too close to lava or flame, they can wander into fights, perhaps intercepting a skeleton's arrow or the player's own attacks. Occasionally they will even get in front of the player's axe, pick, or shovel while they are mining.

Although tamed cats will occasionally hunt chickens, their "tame" behavior will take precedence -- they will not attack while sitting, nor when catching up with the player. When activating its chicken-hunting behavior, a cat will assume a 'sneaking' stance and will stalk a Chicken before chasing it down.

Through version 1.2.5, cats were extremely pushy, prone to shoving the player off ledges and blocking them in close quarters. In 1.3.1, their behavior has been changed so that they no longer do this; on the other hand, they no longer stay next to the player for any length of time, which may compromise their anti-Creeper role.

Cats attempt to sit on any chests, beds, or active furnaces within a 5 block radius of the cat, even if these weren't originally in their line if sight. (This behavior was weakened in 1.2.5, but is still troublesome.) Chests in particular cannot be opened if a sitting cat is on top of it, and cats will ignore everything (even the player moving away) to get on top of one of these blocks. A cat that is already sitting before one of these blocks is placed, or that is told to sit before the cat notices the block, will not try to sit on it. They will not get down from the block (i.e. stop sitting on them) unless the block is removed, a fish is brought out, or you push the cat off of the blocks. If the player holds out a fish, the cat will partially follow the player away from the chest, bed, or active furnace it is sitting on.

Cats only try to sit on the second half of the bed (the half that is placed on the block selected to put the bed on), although they will remain seated if they get pushed by other mobs to the other half of the bed. Cats will only try to sit on the first chest, bed or active furnace they see, and will ignore all other chests, beds and active furnaces until this block is removed. This allows a player to create a distraction, if desired, for the cats while the player works on a project. A cat will not attempt to sit on a chest or bed if the chest or bed is at ground level (inset into the floor), or if there is a block above the chest or bed. Placing stairs, slabs, glass panes, another chest, or some other transparent block above chests is a good way to prevent this, since the player can still open the chest and the cat will ignore it. Cats will attempt to, but will not be able to, sit on a chest 2 blocks above ground level. It will run around it, but not be able to jump on top of it. You can also keep cats off of your chests and beds by building a fence around it, adding a gate, and putting a pressure plate on the inside of the fence. The cats will not be able to jump over the fence, and you can manually activate the gate from the outside and it will close automatically behind you.

When tame cats are fed raw fish, they will immediately enter "love mode", and if two cats are fed, they will breed. (They cannot breed when sitting.) When you breed Cats, both the parents and offspring will follow you.



Breeding
A pair of cats can be bred by right clicking each of them them while holding a raw fish. If either cat is sitting, they will still go into "love mode", but can't actually breed until they are released from the "sit". Breeding will create a kitten, after which the parent cats cannot be bred again for a five-minute delay. The kitten appears to have the color of the parent who reached the other parent first. In multiplayer, the player can breed his or her cat with the cats of other players. When he or she does this, the player who owns the cat seems to be the one whose cat matches the kitten. Naturally, if the parents are identical, the owner must be discovered by the kitten's behavior.

Kittens and Baby Ocelots will not drop experience orbs. Kittens' heads are proportional to their bodies, unlike most baby mobs.

Ocelot kittens can be found randomly- they occasionally spawn when an ocelot spawns, most notably with a spawn egg, and they can be tamed and will vary just like the adults between a tabby, tuxedo, or Siamese cat. When a Spawn Ocelot egg is used on an ocelot, or any cat, it creates a baby of either an ocelot or a cat with the skin of the cat that was touched by the spawn egg.

Teleportation
Just like tamed wolves, they will teleport to the player if a large enough gap (roughly a 20 x 20 x 10 block volume) is created between them and the player with a few exceptions:

A cat will not teleport:
 * It is possible for a tamed cat to teleport to an inaccessible location (e.g. under ice) and be injured or suffocate of various causes as a result.
 * If the player dies, a cat will teleport to the player's bed or spawn with them, unless the cat dies as well.
 * if the cat has been ordered to sit. (See 1st bug in bug list.)
 * if the cat is in a moving minecart.
 * if the player is swimming/steering a boat in deep water; a cat will only teleport as the player approaches land or shallow water that is one block deep (if the player travels long distances on water, whether with or without a boat the cat(s) will not teleport upon reaching land, if they were left on a chunk that was unloaded).
 * if there are only transparent blocks (like ice, glass) around the player
 * if the Player enters a portal and travels to the Nether or the End; a cat will remain in the Overworld until the player returns.

History
They are the first mob created by Jon Kågström, an AI Specialist working with Jens Bergensten on Minecraft. Jens created the texture for the Ocelot, as Jon had trouble doing so himself. They were officially released with Minecraft 1.2.

Trivia

 * Ocelots are hostile mobs in the code - this is the reason they despawn when the player moves too far away from them.
 * The entity ID, debug messages, and texture filenames use the Swedish word "Ozelot," instead of its English equivalent, "Ocelot."
 * The tuxedo cat is based on Jeb's female cat, Newton.
 * It seems odd that ocelots are transformed into cats, as they can be tamed themselves in real life.
 * In real life, cats are known for their ability to flip upright during a fall, particularly larger ones; though they still might be injured by landing. This fact is reflected in Minecraft, where as of snapshot 12w05a cats and ocelots are completely immune to fall damage.
 * An easy way to tame Ocelots without scaring them off is to hold sneak with mouse sensitivity set to "yawn." The player may also press F8 to ease their cursor movement.
 * As taming an Ocelot depends on them entering a certain mode first, they will still react to a player in Creative Mode.
 * Baby Ocelots, if tamed, will become a kitten instead of a cat.
 * Ocelots will not sprint away from the player looking at them through transparent blocks.
 * Cats will not attempt to sit on locked chests.
 * Creepers will not run away from a cat if there is a block between them.
 * Ocelots don't spawn in Peaceful difficulty. However, you can still spawn them with a spawn egg in Creative Mode.
 * Cats have sound files for hissing (hiss1.ogg, hiss2.ogg, hiss3.ogg) that aren't currently used in the game.
 * If you fail to tame an ocelot, it will still show heart particles. Dinnerbone said it's because they like you for giving them fish, but still want more. Studying the game shows that they are actually going into breeding mode, and if there are two such ocelots in the area they will spawn a baby.
 * Cats will not run from tamed sitting wolves, but will sometimes run from wolves that are walking next to you, and the wolf will rarely chase after it.
 * To tame a Ocelot, it must have a 7 by 7 (or larger) area to roam.