Behavior
Crocodiles will hunt almost anything they can get their jaws on (except fishes and creepers). If their prey is small enough, they will thrash it around. To escape their jaws, the crocodile must receive at least 2 damage. A player can avoid the crocodile detection just by sneaking, and pacify them for a while feeding them Raw Chicken.
When the crocodile kills something, it swallow the mob's drops, so you have to tickle them with a feather to get the items out.
Crocodiles will occasionally Bask when out of the water. Crocodiles' eyes glow in the dark to add some ambience. Crocodiles will ALWAYS spawn at least 5 blocks away from water.
Breeding
Crocodiles are bred with Raw Chicken, and they'll lay Crocodile Eggs, these work similarly to Turtle Eggs.
Obtaining scutes
Right clicking a Crocodile with a Brush will make it drop a Crocodile Scute, these can be used to make the Crocodile Scute Blocks, these scutes are also droped when the Crocodile grows up, similar to turtles
Habitat
Green Crocodile: Swamps
Brown Crocodile: Savannas, Deserts (by water)
Black Crocodile: Jungles, Sparse Jungles, Bamboo Jungles (all by water), Mangrove Swamps
Albino Crocodile: Very rarely where the rest live (or rarely when hatched)
Stats
Health: 40
Movement Speed: 0.20
Follow Range: 32
Attack Damage: 4
Attack Knocback: 1.4
Knocback Resistance: 0.4
Drops: none
Variants
Brown Crocodile
Green Crocodile
Black Crocodile
Albino Crocodile
Trivia
Crocodiles were originally named "Alligators" but due to some criticism (mostly from Natsirt) they were renamed to Crocodiles, Alligators however are slightly referenced in the Black Crocodile variant.
Feeding a Crocodile a Clock makes it play a *tick tock* sound and scaring pillagers off, this is a reference to the Tick-Tock-Croc from Peter Pan
Feeding a Crocodile a Compass binded to a loadstone it will make the crocodile go to the loadstone
Feeding a Crocodile with TNT will get you... explosive results