Crocodile

Crocodiles are aggressive mobs that can live in both water and on land.

Natural generation
Crocodiles spawn naturally in Swampland biomes, often in groups of 4. They will often spawn with random sizes.

Drops
When killed, crocodiles will drop 0–2 reptile hide and 1–3. This can be increased with the Looting enchantment.

Behavior
Crocodiles often remain still, with their jaws agape. When not resting, they wander around aimlessly. They will become aggressive and attack the player and mobs on sight within a 12 block radius. They will still remain aggressive even when resting.

Crocodiles are semi-aquatic mobs, and can survive as well as swim underwater and not drown. This also means they can swim to get to the player.

Death roll
Prior to DEV v8.0.0, if a crocodile had caught the player, they could try to get free by punching it, but not all of the hits would land.

This was the crocodile's "death roll", and once caught, it would try to drag the player into the water. The player could easily escape a crocodile by and 'dismounting' it. The death roll, however, has since been temporarily removed due to bugs.

History
{| class="wikitable sortable" style="width: 50%;" !Version

v8.0.0 DEVa
- Crocodile 'death roll' animation needs to be fixed, it has been deactivated for now.

v5.2.0 DEV
- Crocodiles won't attack players in creative mode.

v5.1.5
- Fixed bug where crocodiles wouldn't attack players.

v4.1.0
- Fixed bug out of sync - crocs when trapping prey (untested).

v2.14.2
- Fixed croc jaw snap sound bug.

v2.14
- Added crocodiles.
 * }