diff --git a/birch/init.lua b/birch/init.lua index dbfec46..588841e 100644 --- a/birch/init.lua +++ b/birch/init.lua @@ -86,26 +86,27 @@ end -- Decoration -- - -minetest.register_decoration({ - deco_type = "schematic", - place_on = {"rainf:meadow"}, - sidelen = 16, - noise_params = { - offset = 0.01, - scale = 0.001, - spread = {x = 255, y = 255, z = 255}, - seed = 32, - octaves = 3, - persist = 0.67 - }, - biomes = {"rainf"}, - y_min = 1, - y_max = 80, - schematic = birch.birchtree, - flags = "place_center_x, place_center_z", - place_offset_y = 1, -}) +if minetest.get_modpath("rainf") then + minetest.register_decoration({ + deco_type = "schematic", + place_on = {"rainf:meadow"}, + sidelen = 16, + noise_params = { + offset = 0.01, + scale = 0.001, + spread = {x = 255, y = 255, z = 255}, + seed = 32, + octaves = 3, + persist = 0.67 + }, + biomes = {"rainf"}, + y_min = 1, + y_max = 80, + schematic = birch.birchtree, + flags = "place_center_x, place_center_z", + place_offset_y = 1, + }) +end -- -- Nodes diff --git a/birch/mod.conf b/birch/mod.conf index 5c39f7c..a39f43f 100644 --- a/birch/mod.conf +++ b/birch/mod.conf @@ -1,4 +1,4 @@ name = birch description = Birch Tree for Grassland -depends = rainf, default -optional_depends = stairs, bonemeal +depends = default +optional_depends = stairs, bonemeal, rainf diff --git a/chestnuttree/init.lua b/chestnuttree/init.lua index 6d8a713..4a9dccd 100644 --- a/chestnuttree/init.lua +++ b/chestnuttree/init.lua @@ -66,7 +66,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"rainf:meadow"}, diff --git a/chestnuttree/mod.conf b/chestnuttree/mod.conf index 0ca0a8c..b74ba7d 100644 --- a/chestnuttree/mod.conf +++ b/chestnuttree/mod.conf @@ -1,4 +1,4 @@ name = chestnuttree description = Chesnut Tree for Grassland -depends = rainf, default -optional_depends = stairs, bonemeal +depends = default +optional_depends = stairs, bonemeal, rainf diff --git a/ebony/init.lua b/ebony/init.lua index 4f2622b..367d2c2 100644 --- a/ebony/init.lua +++ b/ebony/init.lua @@ -25,7 +25,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"default:dirt_with_rainforest_litter"}, diff --git a/ebony/mod.conf b/ebony/mod.conf index 009ccee..6869b1e 100644 --- a/ebony/mod.conf +++ b/ebony/mod.conf @@ -1,4 +1,4 @@ name = ebony description = Ebony Tree for Rainforest Biome depends = default -optional_depends = stairs, bonemeal +optional_depends = stairs, bonemeal, rainf diff --git a/hollytree/init.lua b/hollytree/init.lua index eb14056..d681a42 100644 --- a/hollytree/init.lua +++ b/hollytree/init.lua @@ -24,7 +24,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"rainf:meadow"}, diff --git a/hollytree/mod.conf b/hollytree/mod.conf index 033ebd8..ce3e173 100644 --- a/hollytree/mod.conf +++ b/hollytree/mod.conf @@ -1,4 +1,4 @@ name = hollytree description = Hollytree -depends = rainf, default -optional_depends = stairs, bonemeal +depends = default +optional_depends = stairs, bonemeal, rainf diff --git a/jacaranda/init.lua b/jacaranda/init.lua index 26f89d9..50dffb0 100644 --- a/jacaranda/init.lua +++ b/jacaranda/init.lua @@ -24,7 +24,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"default:dirt_with_rainforest_litter"}, diff --git a/jacaranda/mod.conf b/jacaranda/mod.conf index a6d2e56..0d09678 100644 --- a/jacaranda/mod.conf +++ b/jacaranda/mod.conf @@ -1,4 +1,4 @@ name = jacaranda description = Jacaranda for jungles depends = default -optional_depends = stairs, bonemeal +optional_depends = stairs, bonemeal, rainf diff --git a/mahogany/init.lua b/mahogany/init.lua index d64c80d..32868f3 100644 --- a/mahogany/init.lua +++ b/mahogany/init.lua @@ -26,7 +26,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"default:dirt_with_rainforest_litter"}, diff --git a/mahogany/mod.conf b/mahogany/mod.conf index 450bb42..daddcbe 100644 --- a/mahogany/mod.conf +++ b/mahogany/mod.conf @@ -1,4 +1,4 @@ name = mahogany description = Mahogany Tree for Rainforest Biome depends = default -optional_depends = stairs, bonemeal +optional_depends = stairs, bonemeal, rainf diff --git a/maple/init.lua b/maple/init.lua index 607aac7..46f5fae 100644 --- a/maple/init.lua +++ b/maple/init.lua @@ -25,7 +25,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"rainf:meadow"}, diff --git a/maple/mod.conf b/maple/mod.conf index 4604e5e..b7e4013 100644 --- a/maple/mod.conf +++ b/maple/mod.conf @@ -1,4 +1,4 @@ name = maple description = Maple Tree -depends = rainf, default -optional_depends = stairs, bonemeal +depends = default +optional_depends = stairs, bonemeal, rainf diff --git a/oak/init.lua b/oak/init.lua index f2315f9..401988e 100644 --- a/oak/init.lua +++ b/oak/init.lua @@ -50,7 +50,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"rainf:meadow"}, diff --git a/oak/mod.conf b/oak/mod.conf index b819a21..75edd56 100644 --- a/oak/mod.conf +++ b/oak/mod.conf @@ -1,4 +1,4 @@ name = oak description = Oak Tree -depends = rainf, default -optional_depends = stairs, bonemeal +depends = default +optional_depends = stairs, bonemeal, rainf diff --git a/palm/textures/palm_coconut_slice.png b/palm/textures/palm_coconut_slice.png old mode 100755 new mode 100644 diff --git a/pineapple/init.lua b/pineapple/init.lua index 6c048e3..3c5e4e4 100644 --- a/pineapple/init.lua +++ b/pineapple/init.lua @@ -25,7 +25,7 @@ end -- Decoration -- -if mg_name ~= "v6" and mg_name ~= "singlenode" then +if mg_name ~= "v6" and mg_name ~= "singlenode" and minetest.get_modpath("rainf") then minetest.register_decoration({ deco_type = "schematic", place_on = {"default:dirt_with_rainforest_litter"}, diff --git a/pineapple/mod.conf b/pineapple/mod.conf index 3293928..fb30573 100644 --- a/pineapple/mod.conf +++ b/pineapple/mod.conf @@ -1,4 +1,4 @@ name = pineapple description = Pineapple tree for the jungle depends = default -optional_depends = bonemeal +optional_depends = bonemeal, rainf