Move villages into schematic, fix bad nodes

This commit is contained in:
Wuzzy 2017-09-08 03:31:20 +02:00
parent ef1bce1609
commit 0dd4d501ef
10 changed files with 6 additions and 16 deletions

View File

@ -142,7 +142,7 @@ end
-- The call of Struct -- The call of Struct
mcl_structures.call_struct= function(pos, struct_style) mcl_structures.call_struct= function(pos, struct_style)
if struct_style == "village" then if struct_style == "village" then
mcl_structures.geerate_village(pos) mcl_structures.generate_village(pos)
elseif struct_style == "desert_temple" then elseif struct_style == "desert_temple" then
mcl_structures.generate_desert_temple(pos) mcl_structures.generate_desert_temple(pos)
elseif struct_style == "desert_well" then elseif struct_style == "desert_well" then
@ -163,13 +163,11 @@ mcl_structures.call_struct= function(pos, struct_style)
end end
mcl_structures.generate_village = function(pos) mcl_structures.generate_village = function(pos)
-- No Generating for the moment only place it :D -- No generating for the moment, only place it :D
local city = mcl_structures.get_struct("pnj_town_1.we") -- TODO: Do complete overhaul of the algorithm
local newpos = {x=pos.x,y=pos.y,z=pos.z} local newpos = {x=pos.x,y=pos.y-1,z=pos.z}
if newpos == nil then local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_village.mts"
return minetest.place_schematic(newpos, path, "random", nil, true)
end
mcl_structures.deserialise_WE(newpos, city )
end end
mcl_structures.generate_desert_well = function(pos) mcl_structures.generate_desert_well = function(pos)

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

View File

@ -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