Skip to content

Commit e9fbd3d

Browse files
Ezhhparamat
authored andcommittedJun 15, 2018
Add longer log schematics
These use 'spawn_by' to avoid steep slopes.
1 parent abe1b9f commit e9fbd3d

File tree

6 files changed

+16
-1
lines changed

6 files changed

+16
-1
lines changed
 

‎mods/default/mapgen.lua

+16-1
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,7 @@ function default.register_decorations()
16401640
name = "default:apple_log",
16411641
deco_type = "schematic",
16421642
place_on = {"default:dirt_with_grass"},
1643+
place_offset_y = 1,
16431644
sidelen = 16,
16441645
noise_params = {
16451646
offset = 0.0018,
@@ -1655,6 +1656,8 @@ function default.register_decorations()
16551656
schematic = minetest.get_modpath("default") .. "/schematics/apple_log.mts",
16561657
flags = "place_center_x",
16571658
rotation = "random",
1659+
spawn_by = "default:dirt_with_grass",
1660+
num_spawn_by = 8,
16581661
})
16591662

16601663
-- Emergent jungle tree
@@ -1705,7 +1708,8 @@ function default.register_decorations()
17051708
minetest.register_decoration({
17061709
name = "default:jungle_log",
17071710
deco_type = "schematic",
1708-
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
1711+
place_on = {"default:dirt_with_rainforest_litter"},
1712+
place_offset_y = 1,
17091713
sidelen = 80,
17101714
fill_ratio = 0.005,
17111715
biomes = {"rainforest", "rainforest_swamp"},
@@ -1714,6 +1718,8 @@ function default.register_decorations()
17141718
schematic = minetest.get_modpath("default") .. "/schematics/jungle_log.mts",
17151719
flags = "place_center_x",
17161720
rotation = "random",
1721+
spawn_by = "default:dirt_with_rainforest_litter",
1722+
num_spawn_by = 8,
17171723
})
17181724

17191725
-- Taiga and temperate coniferous forest pine tree, small pine tree and log
@@ -1762,6 +1768,7 @@ function default.register_decorations()
17621768
name = "default:pine_log",
17631769
deco_type = "schematic",
17641770
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
1771+
place_offset_y = 1,
17651772
sidelen = 80,
17661773
fill_ratio = 0.0018,
17671774
biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"},
@@ -1770,6 +1777,8 @@ function default.register_decorations()
17701777
schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts",
17711778
flags = "place_center_x",
17721779
rotation = "random",
1780+
spawn_by = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
1781+
num_spawn_by = 8,
17731782
})
17741783

17751784
-- Acacia tree and log
@@ -1799,6 +1808,7 @@ function default.register_decorations()
17991808
name = "default:acacia_log",
18001809
deco_type = "schematic",
18011810
place_on = {"default:dirt_with_dry_grass"},
1811+
place_offset_y = 1,
18021812
sidelen = 16,
18031813
noise_params = {
18041814
offset = 0,
@@ -1814,6 +1824,8 @@ function default.register_decorations()
18141824
schematic = minetest.get_modpath("default") .. "/schematics/acacia_log.mts",
18151825
flags = "place_center_x",
18161826
rotation = "random",
1827+
spawn_by = "default:dirt_with_dry_grass",
1828+
num_spawn_by = 8,
18171829
})
18181830

18191831
-- Aspen tree and log
@@ -1842,6 +1854,7 @@ function default.register_decorations()
18421854
name = "default:aspen_log",
18431855
deco_type = "schematic",
18441856
place_on = {"default:dirt_with_grass"},
1857+
place_offset_y = 1,
18451858
sidelen = 16,
18461859
noise_params = {
18471860
offset = 0.0,
@@ -1857,6 +1870,8 @@ function default.register_decorations()
18571870
schematic = minetest.get_modpath("default") .. "/schematics/aspen_log.mts",
18581871
flags = "place_center_x",
18591872
rotation = "random",
1873+
spawn_by = "default:dirt_with_grass",
1874+
num_spawn_by = 8,
18601875
})
18611876

18621877
-- Large cactus
-10 Bytes
Binary file not shown.

‎mods/default/schematics/apple_log.mts

0 Bytes
Binary file not shown.

‎mods/default/schematics/aspen_log.mts

2 Bytes
Binary file not shown.
-2 Bytes
Binary file not shown.

‎mods/default/schematics/pine_log.mts

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.