Much faster and balanced* version:
http://ompldr.org/vaDJvcg/perlinore%2020130114.zip*Recommended settings for default oregeneration:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
-- Generate regular ores
default.generate_ore("default:stone_with_iron", "default:stone", minp, maxp, seed+2, 1/15/15/15, 3, 5, -63, 2)
default.generate_ore("default:stone_with_iron", "default:stone", minp, maxp, seed+3, 1/12/12/12, 3, 5, -31000, -64)
default.generate_ore("default:stone_with_mese", "default:stone", minp, maxp, seed+4, 1/32/32/32, 2, 3, -127, -64)
default.generate_ore("default:stone_with_mese", "default:stone", minp, maxp, seed+5, 1/18/18/18, 3, 5, -31000, -128)
default.generate_ore("default:mese", "default:stone", minp, maxp, seed+8, 1/16/16/16, 2, 3, -31000,-1024)
At the moment it looks like this:

Grey is coal, red is iron, yellow mese (crystal).
One bug: It seems to use the same seed for all the ores - sometimes, not always. So one is included into the other. In this screenshot you can see is better:

@Nore
Included. Thank you.
@NakedFury
In reality veins appear to be one-dimensional strings. But in fact they are two-dimensional planes. I did the second thing for coal. So when there is a vein visible in the wall you can start following it, just like in a real mine. (see screenshot)
p.s. I don't know how much this affects the speed of the mapgen because my pc is running on 100% with and without the perlinore ;)
edit: Why is this in release?