Hi, paramat!
Could you explain to some greater extent the new biomes registration system?
I'd like to comment the registration of a biome with some statements/questions and it would be great to hear out your comments and/or corrections if you'll have enough time to post those here.
Should anyone else be able to comment - you're welcome!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^ Ok, this is self-explanatory.
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
heat_point = 50,
humidity_point = 50,
^ Ok, this ones too. The only question is: is there any limits? how low/high can be heat/humidity?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^ MAX and MIN altitude for a biome.
Node_top will appear at y==32 within this biome.
Biome won't affect any nodes below y==18.
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
node_top = "default:dirt_with_grass",
depth_top = 1,
^ This is the node that will be on top of the biome and it will be placed only at the very top of it, 'cause depth_top is set to 1. Should I want to have a 2-node-height "blanket" to cover my biome, I'm to set depth_top to 2.
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
node_filler = "default:dirt",
depth_filler = 1,
^ slightly more confusing, but still, node_filler is the node that will appear under the node_top and will be of depth_filler nodes high.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^ Now this IS interesting. Does this field help to replace all stone with some other node?
Will it enable me to have 1-node-height biome of some node at any altitude if I omit the node_top and node_filler fields in the definition?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^This works like node_top except it replaces water at the y_max with a node_water_top wherever the biome goes below water_level.
Now... say I have water_level set to 1.
What will happen if I define a biome with node_filler and node_top set to "default:water"?
Does node_water_top affect only naturally (not biome-defined) placed water at and below the water_level?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^This confuses me even more. does it work like node_filler only for water @water_level and below?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^ I bet setting this to lava will effectively turn all water within biome to lava. Is that true?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
^ This was removed... or was it?
Overall, it will definitely help to see a fresh example with notes on what every field is responsible for.
I guess, that would be helpful for minetest wiki and minetest dev resources.
Regards!
Edit:Having played around with mapgen, I found out that currently biomes can go beyond y_max & y_min if there's no other biome above or below (or there is, but it's humidity and heat made the center of that second biome too far.)
What I'm trying to do is to have all mountains above y==50 to be covered with default:snowblock.
Currently I have to use multiple biomes to ensure that there would be only one type of a landscape above y==50.
I found it impossible to omit heat and/or humidity and still get a biome registered and generated.