refactor & add structures.json

This commit is contained in:
MihailRis
2024-09-24 04:05:13 +03:00
parent 519ebc05f1
commit 323c2f2935
20 changed files with 153 additions and 43 deletions
+6 -1
View File
@@ -53,6 +53,11 @@ biomes = {
{block="base:stone", height=-1},
{block="base:bazalt", height=1},
},
structures = {
"tree0",
"tree1",
"tree2"
}
}
}
@@ -60,7 +65,7 @@ function load_structures()
local structures = {}
local names = {"tree0", "tree1", "tree2", "tower"}
for i, name in ipairs(names) do
local filename = "core:default.files/"..name
local filename = "core:default/"..name
debug.log("loading structure "..filename)
table.insert(structures, generation.load_structure(filename))
end
+6
View File
@@ -0,0 +1,6 @@
{
"tree0": {},
"tree1": {},
"tree2": {},
"tower": {}
}