add generator definition file (.toml)

This commit is contained in:
MihailRis
2024-09-26 22:26:01 +03:00
parent d839da7dab
commit 3d478aef08
12 changed files with 76 additions and 54 deletions
+4
View File
@@ -0,0 +1,4 @@
# 1 - temperature
# 2 - humidity
biome_parameters = 2
sea_level = 64
@@ -1,9 +1,3 @@
sea_level = 64
-- 1 - temperature
-- 2 - humidity
biome_parameters = 2
biomes = json.parse(file.read("base:generators/demo/biomes.json"))
function place_structures(x, z, w, d, seed, hmap)
+1
View File
@@ -0,0 +1 @@
biome_parameters = 0
@@ -1,5 +1,3 @@
biome_parameters = 0
biomes = {flat = {
parameters = {},
layers = {
@@ -9,7 +7,3 @@ biomes = {flat = {
{height=-1, block="core:obstacle"}
}
}}
function generate_heightmap(x, y, w, h, seed)
return Heightmap(w, h)
end