Turtle

Turtles are common passive mobs that move both on land and in water.

Spawning
Turtles typically spawn in the Overworld on beaches with daylight, but not in its snowy variant or stone shores, occasionally in small groups of up to 5 individuals.

In Bedrock Edition, turtles spawn in groups of 2-6. 10% of turtles spawned will be a baby turtle. Turtles spawn at light level 7 or higher and can only spawn at altitude 60-67.

Drops
Turtles drop when they die:
 * 0–2 pieces of.
 * 1–3 s, if killed by a player or tamed wolf.
 * 1, if killed by lightning.

When a baby turtle grows up to an adult it drops:
 * 1

Behavior
Turtles can both move around on land and swim in water. They move slowly on land, but they can swim at a fast speed in water. Like other passive mobs, they will move around aimlessly and will flee when attacked. When on land, they will generally attempt to move to the nearest water source. When on top of eggs, they levitate.

Turtles will follow a player holding seagrass.

Turtles cannot be attached to leads.

Turtles can be picked up by boats.

Being attacked
Baby turtles are attacked by the following mobs:
 * s, s, s and
 * s, s and s
 * Wild s, wild, stray s and es
 * s in Johnny mode
 * s.

Home beach
Each turtle remembers the beach where it hatched as its home beach. No matter how far away the turtle travels, it will always return to its home beach to lay its eggs after breeding.

If the player uses a tool enchanted with Silk Touch to obtain and move turtle eggs to a new location before hatching, the baby turtles remember the new hatching location as their home beach.

If a turtle is spawned from a spawn egg, summoned with the command, or spawned by mob spawners, it remembers the spawn location as its home beach.

Breeding
Feeding two turtles seagrass causes them to enter love mode, after which one of the turtles will have eggs in its inventory, and will travel back to its home beach. Egg-filled turtles are fatter than normal ones. Once the egg-filled turtle arrives at its home beach, it seeks a nearby sand block on which to lay its eggs. The turtle digs for several seconds of digging on top of the sand, and then lays 1–4 turtle eggs. A turtle lays no more than 4 eggs per sand block.

Turtle eggs go through 3 stages before hatching into baby turtles, each stage taking a random amount of time according to received random ticks. Turtle eggs hatch only on sand, at night.

Baby turtles
With a height of 0.12 blocks, baby turtles are the shortest mobs in the game. Baby turtles are small enough that when they walk on soul sand, they are entirely within the space at the top of the block, and therefore suffocate in it, much like endermites and silverfish.

The growth of baby turtles can be slowly accelerated using seagrass. Each use reduces the growth duration by 10%.

Wolves attack baby turtles on sight.

Data values
Turtles have entity data associated with them that contain various properties of the mob.