mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 13:55:10 +00:00
Move villages into schematic, fix bad nodes
This commit is contained in:
parent
ef1bce1609
commit
0dd4d501ef
10 changed files with 6 additions and 16 deletions
|
@ -142,7 +142,7 @@ end
|
|||
-- The call of Struct
|
||||
mcl_structures.call_struct= function(pos, struct_style)
|
||||
if struct_style == "village" then
|
||||
mcl_structures.geerate_village(pos)
|
||||
mcl_structures.generate_village(pos)
|
||||
elseif struct_style == "desert_temple" then
|
||||
mcl_structures.generate_desert_temple(pos)
|
||||
elseif struct_style == "desert_well" then
|
||||
|
@ -163,13 +163,11 @@ mcl_structures.call_struct= function(pos, struct_style)
|
|||
end
|
||||
|
||||
mcl_structures.generate_village = function(pos)
|
||||
-- No Generating for the moment only place it :D
|
||||
local city = mcl_structures.get_struct("pnj_town_1.we")
|
||||
local newpos = {x=pos.x,y=pos.y,z=pos.z}
|
||||
if newpos == nil then
|
||||
return
|
||||
end
|
||||
mcl_structures.deserialise_WE(newpos, city )
|
||||
-- No generating for the moment, only place it :D
|
||||
-- TODO: Do complete overhaul of the algorithm
|
||||
local newpos = {x=pos.x,y=pos.y-1,z=pos.z}
|
||||
local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_village.mts"
|
||||
minetest.place_schematic(newpos, path, "random", nil, true)
|
||||
end
|
||||
|
||||
mcl_structures.generate_desert_well = function(pos)
|
||||
|
|
BIN
mods/MAPGEN/mcl_structures/schematics/mcl_structures_village.mts
Normal file
BIN
mods/MAPGEN/mcl_structures/schematics/mcl_structures_village.mts
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
return {{["y"] = 3, ["x"] = 0, ["name"] = "mcl_torches:torch_wall", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 1, ["param1"] = 15}, {["y"] = 0, ["x"] = 1, ["name"] = "mcl_fences:fence", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 0, ["param1"] = 157}, {["y"] = 1, ["x"] = 1, ["name"] = "mcl_fences:fence", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 0, ["param1"] = 173}, {["y"] = 2, ["x"] = 1, ["name"] = "mcl_fences:fence", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 0, ["param1"] = 189}, {["y"] = 3, ["x"] = 1, ["name"] = "mcl_torches:torch_wall", ["z"] = 0, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 0, ["param1"] = 15}, {["y"] = 3, ["x"] = 1, ["name"] = "mcl_wool:black", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 0, ["param1"] = 0}, {["y"] = 3, ["x"] = 1, ["name"] = "mcl_torches:torch_wall", ["z"] = 2, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 2, ["param1"] = 15}, {["y"] = 3, ["x"] = 2, ["name"] = "mcl_torches:torch_wall", ["z"] = 1, ["meta"] = {["inventory"] = {}, ["fields"] = {}}, ["param2"] = 3, ["param1"] = 15}}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue