A developer of Minecraft, Henrik Kniberg, had posted an image on twitter which showed how Ore Generation works in the new Snapshot 21w07a
I decided to look through the code of Minecraft to get some more details about how the new System functions.
Ores don't only generate with the new System. Redstone, Lapis and Coal generates using the old generation from before 21w07a, as well as the new one.
The way the old generation works is, that there is a Max amount of Veins that can generate in a Chunk. If that limit hasn't been reached yet, a Vein can generate. This Vein gets a Random Y level between it's Min and Max, where it then will Generate.
The way the New Generation works is that the there again is a Max amount of Veins that can generate in a chunk. The Ores also has a Base Y level and a number for Spreading. Whenever a new Vein is going to Generate, this formula will be use to determine it's Y level:
(Random number from 0 to Spread) + (Random number from 0 to Spread) – Spread + Base Y
In this way, the ores will Generate like described on Henrik's image.
Not being able to craft them sucks. Especially when everyone I talk to about it…
First I'd like to say I absolutely love this game it's quality. Basically I first…
Welcome to Teacher Tuesday, a thread where anyone can ask any type of question without…
I’m kind of new/returning to gwent I played beta and obviously it’s a lot lot…
Level 1 Bag (Free with Atmosphere Level 2) 6 small consumable (First Aid, Repair, Fire…
Here's my crew - T34-85M - for the life of me I cant figure out…