by Cerapter » Sat Jul 02, 2016 22:23
How would I go about replacing default:stone in mapgen(s) with my owns?
What I mean is that, let's say, I have 4 different blocks, mymod:mystone1 to mymod:mystone4. From y=0 to y=-800, I want a layer of all four of mymod's stones, so, from 0 to -200, I'd have a layer of mystone1, then from -200 to -400, a layer of mystone2, etc.
I looked into the mapgen.lua file, and saw that there is even a node_stone variable, that almost does what I want. In fact, I managed to get biomes full of my nodes as a test, going down to y=-32 or so.
But what I'd want to is to replace default:stone in every biome with my own, and besides that, I also want to switch it off every 200 nodes downwards.
I looked at the biomes, and while there is an 'underground' biome, it seems to not have a set node_stone; the game seems to just accept that the 'filler' node for underground is going to be default:stone.
So, basically, can I somehow get what are basically geological layers? I've even tried dissecting other mods that seem to try to do the same, but I really can't wrap my head around the codes.
Really, I think the 'underground' biome is the biggest problem here. Well, I just have a feeling if that I replaced those with different "biomes" of layers of different stones, I could get what I want. But I'd like to only make a mod as of yet, not a subgame.