From c952b13adcc3672b3d19ba6924ed08b4df95be6a Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sun, 18 Mar 2018 14:16:35 +0100 Subject: [PATCH] Fix spawn of some plants --- init.lua | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index cda9569..d46b59a 100644 --- a/init.lua +++ b/init.lua @@ -714,10 +714,13 @@ minetest.register_decoration({ }) minetest.register_decoration({ deco_type = "simple", - place_on = "default:dirt_with_grass", + place_on = {"default:dirt_with_grass", "default:sand"}, sidelen = 16, fill_ratio = 0.01, - biomes = {"stone_grassland", "sandstone_grassland"}, + biomes = {"deciduous_forest_shore", + "grassland", + "grassland_dunes", + "coniferous_forest_dunes"}, decoration = "moreplants:tallgrass", height = 1, }) @@ -784,18 +787,19 @@ minetest.register_decoration({ place_on = "default:sand", sidelen = 16, fill_ratio = 0.01, - biomes = {"stone_grassland_ocean", "deciduous_forest_ocean"}, + biomes = {"grassland_ocean", "deciduous_forest_ocean"}, decoration = "moreplants:bulrush", height = 1, }) minetest.register_decoration({ deco_type = "simple", - place_on = {"default:water_source", "default:river_water_source"}, + place_on = {"default:dirt"}, sidelen = 16, fill_ratio = 0.005, - biomes = {"stone_grassland_ocean", "deciduous_forest_ocean"}, + biomes = {"rainforest_swamp", "deciduous_forest_shore"}, decoration = "moreplants:aliengrass", height = 1, + place_offset_y = 1, }) minetest.register_decoration({ deco_type = "simple", @@ -905,6 +909,15 @@ minetest.register_decoration({ decoration = "moreplants:fern", height = 1, }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_coniferous_litter"}, + sidelen = 26, + fill_ratio = 0.002, + biomes = {"coniferous_forest", "taiga"}, + decoration = "moreplants:bluespike", + height = 1, +}) minetest.register_decoration({ deco_type = "simple", place_on = "default:dirt_with_grass", @@ -914,6 +927,16 @@ minetest.register_decoration({ decoration = "moreplants:mushroom", height = 1, }) +minetest.register_decoration({ + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.01, + biomes = {"deciduous_forest","grassland"}, + decoration = "moreplants:clover", + height = 1, +}) + -- minetest.register_decoration({ -- deco_type = "simple", -- place_on = "air",