Squid

Squid are eight-armed passive mobs that spawn in water. When use a Iron Sword or other sword you will get Ink Sac or other items.

Bedrock Edition
2-4 squid can spawn in water, as long as the biome is a river, ocean, or variant. In addition, they only spawn on the surface, 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
4 squid commonly spawn in water between layers 46 and sea level (62). 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 most 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.
 * Experience 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.

Squids 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 the 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.

Squids, being aquatic mobs, are affected by the Impaling enchantment.

Squids 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$ 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. $1⁄2$ 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.
 * If a squid is out of the water, its arms swing more slowly as its oxygen meter goes down. When 15 seconds have passed, its arms stop swinging and the squid begins to suffocate.
 * In real life, squid have ten tentacles, not eight, and the squid in-game seems more like an octopus.
 * Squid are not affected by the Dinnerbone easter egg.