In the Minecraft 1.19 update, ocelots cannot be fully tamed like cats, but you can gain their trust. Here’s how to do it:
Find an Ocelot: Ocelots spawn in the jungle biome, typically in areas with dense vegetation.
Have Raw Fish Ready: Gather raw cod or raw salmon by fishing or killing fish in rivers and oceans.
Approach Carefully: Hold the raw fish in your hand and slowly approach the ocelot. Move cautiously to avoid scaring it away.
Feed the Ocelot: When the ocelot notices you and starts approaching, stand still. Once it is close enough, right-click (or the equivalent action for your platform) to feed it raw fish.
Gain Trust: After feeding, the ocelot will trust you. It won’t run away from you anymore, but it won’t follow you like a tamed cat.