miuradio
How It SpawnsThe tricks inside famous games, shown running.›

How It Spawns

How do slime chunks work, and why won't slimes spawn in your farm?

Premieres today. Follow to see it first.

Story

Because only about one chunk in ten is a slime chunk, and your world's seed decided which the moment the world was made. In Minecraft, Java Edition, the game takes a chunk's two numbers, its X and Z, and scrambles them with the seed into one long number. A roll started from that number gives 0 to 9. A 0, and that chunk is a slime chunk for good. Below Y 40, slimes spawn only in those chunks, lit or dark, so you can light your farm up.

Same seed, same slime chunks, every time you load the world. So anyone with your seed can work out every slime chunk without loading a single block.

Two more rules from the same code: nothing spawns within 24 blocks of you, so wait a little way off, and every spawn try in a slime chunk still has its own one in ten. Swamps follow a different rule: Y 51 to 69, more often under a fuller moon, and only in low light.

The formula is already in Mojang's Alpha 1.2.6 build from December 2010. Slimes then had to be below Y 16; below Y 40 since 1.0 (November 2011).

The rules are Java Edition 26.3's code. The mine, the slimes and the map are our own simplified version, drawn in code, and every roll on screen comes from our own run of the game's formula (seeds 4150 and 2050).

So, the same seed on a friend's computer: same slime chunks, or new ones?

Sources: Minecraft Java Edition, the game's code in Mojang's release 26.3 (the slime spawn rule, the slime chunk formula, the random number source, the natural spawner, the moon timeline) and Mojang's Alpha 1.2.6, Beta 1.7.3 and 1.8.1, 1.0, 1.2.5 and 1.8.9 releases.
Not an official Minecraft video. Not approved by or associated with Mojang or Microsoft.
Sounds and music: our own, made in code.

Link copied