From e9fbd3d75df9f0a165b41b870df3fb4d3958f1c9 Mon Sep 17 00:00:00 2001 From: Ezhh Date: Fri, 15 Jun 2018 07:25:43 +0100 Subject: [PATCH] Add longer log schematics These use 'spawn_by' to avoid steep slopes. --- mods/default/mapgen.lua | 17 ++++++++++++++++- mods/default/schematics/acacia_log.mts | Bin 65 -> 55 bytes mods/default/schematics/apple_log.mts | Bin 90 -> 90 bytes mods/default/schematics/aspen_log.mts | Bin 118 -> 120 bytes mods/default/schematics/jungle_log.mts | Bin 96 -> 94 bytes mods/default/schematics/pine_log.mts | Bin 93 -> 93 bytes 6 files changed, 16 insertions(+), 1 deletion(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index e7914934..fdbe4a83 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -1640,6 +1640,7 @@ function default.register_decorations() name = "default:apple_log", deco_type = "schematic", place_on = {"default:dirt_with_grass"}, + place_offset_y = 1, sidelen = 16, noise_params = { offset = 0.0018, @@ -1655,6 +1656,8 @@ function default.register_decorations() schematic = minetest.get_modpath("default") .. "/schematics/apple_log.mts", flags = "place_center_x", rotation = "random", + spawn_by = "default:dirt_with_grass", + num_spawn_by = 8, }) -- Emergent jungle tree @@ -1705,7 +1708,8 @@ function default.register_decorations() minetest.register_decoration({ name = "default:jungle_log", deco_type = "schematic", - place_on = {"default:dirt_with_rainforest_litter", "default:dirt"}, + place_on = {"default:dirt_with_rainforest_litter"}, + place_offset_y = 1, sidelen = 80, fill_ratio = 0.005, biomes = {"rainforest", "rainforest_swamp"}, @@ -1714,6 +1718,8 @@ function default.register_decorations() schematic = minetest.get_modpath("default") .. "/schematics/jungle_log.mts", flags = "place_center_x", rotation = "random", + spawn_by = "default:dirt_with_rainforest_litter", + num_spawn_by = 8, }) -- Taiga and temperate coniferous forest pine tree, small pine tree and log @@ -1762,6 +1768,7 @@ function default.register_decorations() name = "default:pine_log", deco_type = "schematic", place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"}, + place_offset_y = 1, sidelen = 80, fill_ratio = 0.0018, biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"}, @@ -1770,6 +1777,8 @@ function default.register_decorations() schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts", flags = "place_center_x", rotation = "random", + spawn_by = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"}, + num_spawn_by = 8, }) -- Acacia tree and log @@ -1799,6 +1808,7 @@ function default.register_decorations() name = "default:acacia_log", deco_type = "schematic", place_on = {"default:dirt_with_dry_grass"}, + place_offset_y = 1, sidelen = 16, noise_params = { offset = 0, @@ -1814,6 +1824,8 @@ function default.register_decorations() schematic = minetest.get_modpath("default") .. "/schematics/acacia_log.mts", flags = "place_center_x", rotation = "random", + spawn_by = "default:dirt_with_dry_grass", + num_spawn_by = 8, }) -- Aspen tree and log @@ -1842,6 +1854,7 @@ function default.register_decorations() name = "default:aspen_log", deco_type = "schematic", place_on = {"default:dirt_with_grass"}, + place_offset_y = 1, sidelen = 16, noise_params = { offset = 0.0, @@ -1857,6 +1870,8 @@ function default.register_decorations() schematic = minetest.get_modpath("default") .. "/schematics/aspen_log.mts", flags = "place_center_x", rotation = "random", + spawn_by = "default:dirt_with_grass", + num_spawn_by = 8, }) -- Large cactus diff --git a/mods/default/schematics/acacia_log.mts b/mods/default/schematics/acacia_log.mts index 037bca8c32152f0927ff027811e918e713872b91..aff3bd6add32084e3fd941c616b39bf598f1a41d 100644 GIT binary patch literal 55 zcmeYb3HD`RVPIuoWMHfZ62d8|X^EvdC02>aiOHFX@g+s6sTFgQ6B-zQ|N2!`EhoUh JAh3YR0sxNm5VQaQ delta 47 zcmXqa6!i@W_GMsUU}j)qV63kPlFW&jMHBfYg&COL3{nz0)^BH@WMgB)z&VxC6#&;n B3P1n= diff --git a/mods/default/schematics/apple_log.mts b/mods/default/schematics/apple_log.mts index e7ee8f2b84ab06165c4537cd4607ec56e3066608..3c1aae45042c79aca5fd426bd10aa4fcf41e6740 100644 GIT binary patch literal 90 zcmeYb3HD`RVPIuoVqmPVXJBUFNl8shEX^sgDk(}$WnfOsEMgE#%gHZKEh@IkEiKL{ u%FoY@Pb$hU&#Rb|oY27RrjWuk@!Qw0U%&D2eB$A;QDB(H!k~VgDHZ^$P#v=X literal 90 zcmeYb3HD`RVPFPA#`^kt5F;_Oh=C_1H7&6;r^KqHC^eNqEG;L$JhiCUDz~&aqbNT= qH$JH-zdWyEPI3YRvztLmLITt0N3Y*XK5^uclao{6WDtsDOalOtHXH!} diff --git a/mods/default/schematics/aspen_log.mts b/mods/default/schematics/aspen_log.mts index 180e6fd1be8b31d1578f057edd7e3fb3f321c5ed..d0c723d71d002232207e0d1e77c99903dd0cd564 100644 GIT binary patch delta 103 zcmXS`(DV%n_GMsUU}a!pV63kPvV>An(-KQ_N~{u#3sUpqONvrc8JH6@izYfqm@|l^ z<>Z&A78P6NmKJ9e<>%+d7p10D%t=mYV0KeTNlHjd*s^~8`t9in6Q-v>U}W5&!k}5n GR0jY|jv~?k delta 86 zcmb;@6Y~uT_GMsUUyH1XTluV26M@HiY{W=im6&@5-F1pwbr7GD4W delta 58 zcmaz`5c3TQ_GMsUUzjW0?~shE?T(7^1bkisirq7RFzm