A slime is a cube-shaped Overworld mob that moves by hopping. It occurs in three natural sizes: small, medium and large. The sizes share the entity ID minecraft:slime.
Slimes have two natural spawn routes. Near the surface, they can appear in swamps and mangrove swamps. Underground, they can appear in particular chunk columns called slime chunks, including beneath other biomes. Natural spawns occur on Easy through Hard.
In Java Edition, the swamp route checks for Y 51–69 and a local brightness of at most 7. Its chance increases with moon brightness and the swamp check cannot pass at a new moon. The underground route uses eligible slime chunks below Y 40 and skips the swamp light and moon checks.
Bedrock Edition's vanilla spawn definition permits both surface and underground spawns and includes swamp and mangrove swamp among its biome filters.
Slimes hop about until they acquire a target such as a player or an iron golem, then hop toward it. Large and medium slimes hurt nearby targets. Small slimes still move by hopping but deal no contact damage. In Bedrock Edition, the small, medium and large sizes have 1, 4 and 16 health points respectively. The medium and large forms have base attack values of 2 and 4.
When a large slime dies it splits into medium slimes, and medium slimes split into small ones. Small slimes are the last stage and do not split.
Only small slimes qualify for ordinary slimeball loot. The base roll yields 0–2 slimeballs in either edition. Looting can increase the quantity, and the ordinary roll has no player-kill requirement. A frog can swallow a small slime and produce one slimeball through a separate loot rule.
Java Edition uses the world seed and chunk coordinates to determine where slime chunks lie. Bedrock Edition uses chunk coordinates alone, so changing the seed does not move its slime chunks. Java Edition handles the frog result in the slime's own loot table. Bedrock Edition defines that result in the frog's eating loot table.