mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
tweak structure parameters
This commit is contained in:
parent
c4532de910
commit
3c36131cd9
3 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@ local spawnon = {"mcl_core:stripped_oak","mcl_stairs:slab_birchwood_top"}
|
||||||
vl_structures.register_structure("pillager_outpost",{
|
vl_structures.register_structure("pillager_outpost",{
|
||||||
place_on = {"group:grass_block","group:dirt","mcl_core:dirt_with_grass","group:sand"},
|
place_on = {"group:grass_block","group:dirt","mcl_core:dirt_with_grass","group:sand"},
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
prepare = { padding = 3, corners = 4, foundation = -8, clear = true },
|
prepare = { tolerance = 4, padding = 3, corners = 4, foundation = -8, clear = true },
|
||||||
y_offset = 0,
|
y_offset = 0,
|
||||||
chunk_probability = 15,
|
chunk_probability = 15,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
|
@ -57,8 +57,10 @@ vl_structures.register_structure("pillager_outpost",{
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
},
|
},
|
||||||
after_place = function(p,_,pr) -- fixme: use p1, p2 from the callback?
|
after_place = function(p,_,pr,p1,p2)
|
||||||
local p1, p2 = vector.offset(p,-9,0,-9), vector.offset(p,9,32,9)
|
for _,n in pairs(minetest.find_nodes_in_area(p1,p2,{"group:wall"})) do
|
||||||
|
mcl_walls.update_wall(n)
|
||||||
|
end
|
||||||
vl_structures.spawn_mobs("mobs_mc:pillager",spawnon,p1,p2,pr,5)
|
vl_structures.spawn_mobs("mobs_mc:pillager",spawnon,p1,p2,pr,5)
|
||||||
vl_structures.spawn_mobs("mobs_mc:parrot",{"mesecons_pressureplates:pressure_plate_stone_off"},p1,p2,pr,3)
|
vl_structures.spawn_mobs("mobs_mc:parrot",{"mesecons_pressureplates:pressure_plate_stone_off"},p1,p2,pr,3)
|
||||||
vl_structures.spawn_mobs("mobs_mc:iron_golem",{"mesecons_button:button_stone_off"},p1,p2,pr,1)
|
vl_structures.spawn_mobs("mobs_mc:iron_golem",{"mesecons_button:button_stone_off"},p1,p2,pr,1)
|
||||||
|
|
|
@ -71,10 +71,10 @@ vl_structures.register_structure("shipwreck",{
|
||||||
place_on = {"group:sand","mcl_core:gravel"},
|
place_on = {"group:sand","mcl_core:gravel"},
|
||||||
spawn_by = {"group:water"},
|
spawn_by = {"group:water"},
|
||||||
num_spawn_by = 4,
|
num_spawn_by = 4,
|
||||||
chunk_probability = 15,
|
chunk_probability = 20,
|
||||||
biomes = ocean_biomes,
|
biomes = ocean_biomes,
|
||||||
y_min = mcl_vars.mg_overworld_min,
|
y_min = mcl_vars.mg_overworld_min,
|
||||||
y_max = water_level-4,
|
y_max = water_level-5,
|
||||||
y_offset = function(pr) return pr:next(-3,-1) end,
|
y_offset = function(pr) return pr:next(-3,-1) end,
|
||||||
flags = "place_center_x, place_center_z, force_placement",
|
flags = "place_center_x, place_center_z, force_placement",
|
||||||
prepare = { tolerance = -1, clear = false, foundation = false, mode = "water" },
|
prepare = { tolerance = -1, clear = false, foundation = false, mode = "water" },
|
||||||
|
|
|
@ -6,7 +6,7 @@ local spawnon = {"mcl_deepslate:deepslate","mcl_core:birchwood","mcl_wool:red_ca
|
||||||
vl_structures.register_structure("woodland_cabin",{
|
vl_structures.register_structure("woodland_cabin",{
|
||||||
place_on = {"group:grass_block","group:dirt","mcl_core:dirt_with_grass"},
|
place_on = {"group:grass_block","group:dirt","mcl_core:dirt_with_grass"},
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
prepare = { padding = 2, corners = 5, foundation = true, clear = true, clear_top = 2 },
|
prepare = { tolerance = 3, padding = 2, corners = 5, foundation = -5, clear = true, clear_top = 2 },
|
||||||
force_placement = false,
|
force_placement = false,
|
||||||
chunk_probability = 20,
|
chunk_probability = 20,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
|
|
Loading…
Reference in a new issue