Squid

Squid are eight-armed passive mobs that spawn in water.

Bedrock Edition
Squid can spawn in water, as long as the biome is a river, ocean, or variant. In addition, they only spawn on the surface (i.e., there must not be a spawnable block above the spawn location with a non-solid block on top). They have a 5% chance to spawn as babies.

Java Edition
Squid commonly spawn in water between layers 46 and sea level (64), in groups of up to 4. After the world generation, they can spawn individually and only in rivers, beach variants and oceanic biomes.

Squid do not spawn anywhere if the world type is classic flat (the sea level for superflat worlds is at Y=0).

Unlike other animals, squid despawn over time.

Drops

 * 1–3 . The maximum amount is increased by 1 per level of Looting, for a maximum of 1-6 with Looting III.
 * when killed by a player or tamed wolf

Behavior
Squid are passive toward the player, akin to the other passive mobs found on land. They are not attracted to light and do not deliberately interact with the player.

When a squid moves, its tentacles open and close, giving them an appearance of pushing themselves leisurely forward. Squid hover in place when first spawned into the world and wander around aimlessly, swimming up and down through each layer.

Squid suffocate to death if they are beached on land for too long. While on land, they do not move, and stay stationary until they suffocate. They can take fall damage and burn like any other land mob, but they cannot drown. When out of water, squid are extremely resistant to knockback.

Squid cannot swim in lava, even if given a Fire Resistance effect. They simply pass through the lava and behave as if on land. Unlike land-based mobs, squid can swim against a current and not get pushed by it.

Guardians and elder guardians attack squid in the same manner as they would a player, even if the squid is affected by invisibility.

Squid, being aqueous mobs, are affected by the Impaling enchantment.

Squid produce a cloud of black ink particles and swim away in the opposite direction when attacked. They also produce unique dark blue bubble particles when hit.

Squid sometimes beach themselves and suffocate on the banks of rivers and occasionally on ocean beaches.

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

Trivia

 * Hitting a squid underwater causes them to rise approximately $1⁄3$–$1⁄2$ a block.
 * Squid cannot be damaged by attacks to their tentacles.
 * Squid don't have a death animation.
 * Squid behave like some land mobs and attempt to ride a minecart. In Java Edition this is not always useful as rails and water cannot occupy the same block.
 * Squid are the first passive mob to spawn at any light level, in water and without grass.
 * The squid's idle sound is barely audible.
 * Baby squid are exclusive to Bedrock Edition.
 * In Bedrock Edition, if a squid is out of water, its arms swing more slowly as its oxygen bar decreases. When the oxygen bar is gone, its arms stop swinging and the squid begins dying.