Minecraft wiki entry for Ocelot, associated text: Ocelots approach players holding raw cod or raw salmon within 10 blocks. If the player moves, turns their head too quickly, or stops holding the item while within 6 blocks, the ocelot flees and does not attempt to approach the player for a few seconds.