mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
refactor & add structures.json
This commit is contained in:
parent
519ebc05f1
commit
323c2f2935
20 changed files with 153 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue