added trees

This commit is contained in:
cale 2016-01-09 13:00:09 +01:00
parent 6fe74e6f8c
commit d4ed4bdb29
18 changed files with 222 additions and 26 deletions

View File

@ -87,18 +87,6 @@ minetest.register_biome({
})
minetest.register_biome({
name = "savanna",
node_top = "default:dry_grass",
node_filler = "default:dirt",
depth_filler = 2,
depth_top = 1,
y_min = 1,
y_max = 55,
heat_point = 60,
humidity_point = 25,
})
minetest.register_biome({
name = "savanna",
node_top = "default:dry_grass",
@ -183,6 +171,85 @@ minetest.register_decoration({
y_max = 31000,
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",
})
-- ores
minetest.register_ore({
@ -259,3 +326,4 @@ minetest.register_ore({
y_max = -256,
})

View File

@ -87,18 +87,6 @@ minetest.register_biome({
})
minetest.register_biome({
name = "savanna",
node_top = "default:dry_grass",
node_filler = "default:dirt",
depth_filler = 2,
depth_top = 1,
y_min = 1,
y_max = 55,
heat_point = 60,
humidity_point = 25,
})
minetest.register_biome({
name = "savanna",
node_top = "default:dry_grass",
@ -183,6 +171,85 @@ minetest.register_decoration({
y_max = 31000,
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",
})
-- ores
minetest.register_ore({
@ -259,3 +326,4 @@ minetest.register_ore({
y_max = -256,
})

View File

@ -42,7 +42,7 @@ minetest.register_node("default:ice", {
})
minetest.register_node("default:leaves_1", {
description = "leaves",
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_1.png"},
@ -51,6 +51,36 @@ minetest.register_node("default:leaves_1", {
climbable = true,
})
minetest.register_node("default:leaves_2", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_2.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:leaves_3", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_3.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:leaves_4", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_4.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:stones_on_floor", {
description = "Stones on Floor",
tiles = {"default_stones_on_floor.png"},

View File

@ -42,7 +42,7 @@ minetest.register_node("default:ice", {
})
minetest.register_node("default:leaves_1", {
description = "leaves",
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_1.png"},
@ -51,6 +51,36 @@ minetest.register_node("default:leaves_1", {
climbable = true,
})
minetest.register_node("default:leaves_2", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_2.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:leaves_3", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_3.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:leaves_4", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_4.png"},
groups = {crumbly = 3, leaves = 1},
walkable = false,
climbable = true,
})
minetest.register_node("default:stones_on_floor", {
description = "Stones on Floor",
tiles = {"default_stones_on_floor.png"},

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B