Skip to content

Commit

Permalink
Less cherry logs into deciduous forest
Browse files Browse the repository at this point in the history
  • Loading branch information
sys4-fr committed Dec 1, 2017
1 parent 4e7fe6c commit a62076e
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ minetest.register_biome(
-- Decoration
-- Cherry tree and log

-- Cherry trees
minetest.register_decoration(
{
deco_type = "schematic",
Expand Down Expand Up @@ -255,9 +256,6 @@ minetest.register_decoration(
},
biomes = {
"deciduous_forest",
"cherry_blossom_forest",
"cherry_blossom_forest_floral",
"cherry_blossom_forest_grassy"
},
y_min = 1,
y_max = 31000,
Expand All @@ -267,6 +265,7 @@ minetest.register_decoration(
rotation = "random",
})

-- cherry logs
minetest.register_decoration(
{
deco_type = "schematic",
Expand All @@ -281,7 +280,6 @@ minetest.register_decoration(
persist = 0.66
},
biomes = {
"deciduous_forest",
"cherry_blossom_forest",
"cherry_blossom_forest_floral",
"cherry_blossom_forest_grassy"
Expand All @@ -294,6 +292,30 @@ minetest.register_decoration(
rotation = "random",
})

minetest.register_decoration(
{
deco_type = "schematic",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = {
offset = 0.0004,
scale = 0.0003,
spread = {x = 250, y = 250, z = 250},
seed = 3,
octaves = 3,
persist = 0.66
},
biomes = {
"deciduous_forest",
},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("cherry_tree") ..
"/schematics/cherry_log.mts",
flags = "place_center_x",
rotation = "random",
})

if minetest.get_modpath("doors") then
-- Door from BFD: Cherry planks doors
doors.register(
Expand Down

0 comments on commit a62076e

Please sign in to comment.