fixed trees

This commit is contained in:
cale 2016-12-19 11:48:19 +01:00
parent 0ab58a146a
commit ec688f288e
8 changed files with 84 additions and 78 deletions

View File

@ -94,6 +94,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "default:wood 4",
recipe = {
{"default:log"},
}
})
minetest.register_craft({
output = "default:wooden_planks",
recipe = {

View File

@ -229,84 +229,6 @@ minetest.register_decoration({
decoration = "default:stones_on_floor",
})
--trees
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.02,
spread = {x = 250, y = 250, z = 250},
seed = 22,
octaves = 3,
persist = 0.66
},
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree2.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dirt_with_snow"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"tundra"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/pinetree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dry_grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"savanna"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/drytree2.mts",
flags = "place_center_x, place_center_z",
})
-- jungle
minetest.register_decoration({

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -206,3 +206,80 @@ minetest.register_abm({
minetest.place_schematic({x = pos.x - 2, y = pos.y - 0, z = pos.z - 2}, path, 0, nil, false)
end,
})
-- mapgen
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.02,
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.005,
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree2.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.01,
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree3.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dirt_with_snow"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"tundra"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/pinetree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dry_grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"savanna"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/drytree2.mts",
flags = "place_center_x, place_center_z",
})