mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 02:21:06 +01:00
Structure transfer fixes
This commit is contained in:
parent
f5cc0ef2dc
commit
be2a8d7054
5 changed files with 11 additions and 11 deletions
|
@ -34,7 +34,7 @@ end
|
||||||
|
|
||||||
mcl_structures.register_structure("desert_temple",{
|
mcl_structures.register_structure("desert_temple",{
|
||||||
place_on = {"group:sand"},
|
place_on = {"group:sand"},
|
||||||
fill_ratio = 0.01,
|
fill_ratio = 0.05,
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
solid_ground = true,
|
solid_ground = true,
|
||||||
make_foundation = true,
|
make_foundation = true,
|
||||||
|
|
|
@ -130,7 +130,7 @@ mcl_structures.register_structure("igloo",{
|
||||||
place_on = {"mcl_core:snowblock","mcl_core:snow","group:grass_block_snow"},
|
place_on = {"mcl_core:snowblock","mcl_core:snow","group:grass_block_snow"},
|
||||||
fill_ratio = 0.01,
|
fill_ratio = 0.01,
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
chunk_probability = 4400,
|
chunk_probability = 250,
|
||||||
solid_ground = true,
|
solid_ground = true,
|
||||||
make_foundation = true,
|
make_foundation = true,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
|
|
|
@ -19,7 +19,7 @@ mcl_structures.register_structure("jungle_temple",{
|
||||||
modpath.."/schematics/mcl_structures_jungle_temple_nice.mts",
|
modpath.."/schematics/mcl_structures_jungle_temple_nice.mts",
|
||||||
},
|
},
|
||||||
loot = {
|
loot = {
|
||||||
["mcl_chests:chest_small" ] ={{
|
["mcl_chests:trapped_chest_small" ] ={{
|
||||||
stacks_min = 2,
|
stacks_min = 2,
|
||||||
stacks_max = 6,
|
stacks_max = 6,
|
||||||
items = {
|
items = {
|
||||||
|
|
|
@ -82,7 +82,7 @@ local cold = {
|
||||||
y_min = mcl_vars.mg_overworld_min,
|
y_min = mcl_vars.mg_overworld_min,
|
||||||
y_max = -2,
|
y_max = -2,
|
||||||
biomes = cold_oceans,
|
biomes = cold_oceans,
|
||||||
chunk_probability = 256,
|
chunk_probability = 400,
|
||||||
sidelen = 20,
|
sidelen = 20,
|
||||||
filenames = {
|
filenames = {
|
||||||
modpath.."/schematics/mcl_structures_ocean_ruins_cold_1.mts",
|
modpath.."/schematics/mcl_structures_ocean_ruins_cold_1.mts",
|
||||||
|
|
|
@ -22,12 +22,12 @@ local function hut_placement_callback(pos,def,pr)
|
||||||
local hl = def.sidelen / 2
|
local hl = def.sidelen / 2
|
||||||
local p1 = vector.offset(pos,-hl,-hl,-hl)
|
local p1 = vector.offset(pos,-hl,-hl,-hl)
|
||||||
local p2 = vector.offset(pos,hl,hl,hl)
|
local p2 = vector.offset(pos,hl,hl,hl)
|
||||||
local legs = minetest.find_nodes_in_area(p1, p2, "mcl_core:tree")
|
local legs = minetest.find_nodes_in_area(vector.offset(pos,-hl,0,-hl),vector.offset(pos,hl,0,hl), "mcl_core:tree")
|
||||||
local tree = {}
|
local tree = {}
|
||||||
for i = 1, #legs do
|
for _,leg in pairs(legs) do
|
||||||
while minetest.get_item_group(mcl_vars.get_node({x=legs[i].x, y=legs[i].y-1, z=legs[i].z}, true, 333333).name, "water") ~= 0 do
|
while minetest.get_item_group(mcl_vars.get_node(vector.offset(leg,0,-1,0), true, 333333).name, "water") ~= 0 do
|
||||||
legs[i].y = legs[i].y - 1
|
leg = vector.offset(leg,0,-1,0)
|
||||||
table.insert(tree,legs[i])
|
table.insert(tree,leg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.bulk_set_node(tree, {name = "mcl_core:tree", param2 = 2})
|
minetest.bulk_set_node(tree, {name = "mcl_core:tree", param2 = 2})
|
||||||
|
@ -38,8 +38,8 @@ mcl_structures.register_structure("witch_hut",{
|
||||||
place_on = {"group:sand","group:grass_block","mcl_core:water_source","group:dirt"},
|
place_on = {"group:sand","group:grass_block","mcl_core:water_source","group:dirt"},
|
||||||
fill_ratio = 0.01,
|
fill_ratio = 0.01,
|
||||||
flags = "place_center_x, place_center_z, liquid_surface, force_placement",
|
flags = "place_center_x, place_center_z, liquid_surface, force_placement",
|
||||||
sidelen = 5,
|
sidelen = 8,
|
||||||
chunk_probability = 256,
|
chunk_probability = 400,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
y_min = -4,
|
y_min = -4,
|
||||||
y_offset = 0,
|
y_offset = 0,
|
||||||
|
|
Loading…
Reference in a new issue