make rainf dependency entirely optional
(also fix a fewe places where it wasn't listed as a depend at all)master
parent
19eaa004e6
commit
85a83b111b
|
@ -86,8 +86,8 @@ end
|
|||
-- Decoration
|
||||
--
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
if minetest.get_modpath("rainf") then
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"rainf:meadow"},
|
||||
sidelen = 16,
|
||||
|
@ -105,7 +105,8 @@ minetest.register_decoration({
|
|||
schematic = birch.birchtree,
|
||||
flags = "place_center_x, place_center_z",
|
||||
place_offset_y = 1,
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = ebony
|
||||
description = Ebony Tree for Rainforest Biome
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = hollytree
|
||||
description = Hollytree
|
||||
depends = rainf, default
|
||||
optional_depends = stairs, bonemeal
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = jacaranda
|
||||
description = Jacaranda for jungles
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = mahogany
|
||||
description = Mahogany Tree for Rainforest Biome
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = maple
|
||||
description = Maple Tree
|
||||
depends = rainf, default
|
||||
optional_depends = stairs, bonemeal
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = oak
|
||||
description = Oak Tree
|
||||
depends = rainf, default
|
||||
optional_depends = stairs, bonemeal
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf
|
||||
|
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
@ -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"},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = pineapple
|
||||
description = Pineapple tree for the jungle
|
||||
depends = default
|
||||
optional_depends = bonemeal
|
||||
optional_depends = bonemeal, rainf
|
||||
|
|
Loading…
Reference in New Issue