make rainf dependency entirely optional

(also fix a fewe places where it wasn't listed as a depend at all)
master
VanessaE 2020-11-01 14:41:47 -05:00
parent 19eaa004e6
commit 85a83b111b
19 changed files with 43 additions and 42 deletions

View File

@ -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

View File

@ -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

View File

@ -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"},

View File

@ -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

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = ebony
description = Ebony Tree for Rainforest Biome
depends = default
optional_depends = stairs, bonemeal
optional_depends = stairs, bonemeal, rainf

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = hollytree
description = Hollytree
depends = rainf, default
optional_depends = stairs, bonemeal
depends = default
optional_depends = stairs, bonemeal, rainf

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = jacaranda
description = Jacaranda for jungles
depends = default
optional_depends = stairs, bonemeal
optional_depends = stairs, bonemeal, rainf

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = mahogany
description = Mahogany Tree for Rainforest Biome
depends = default
optional_depends = stairs, bonemeal
optional_depends = stairs, bonemeal, rainf

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = maple
description = Maple Tree
depends = rainf, default
optional_depends = stairs, bonemeal
depends = default
optional_depends = stairs, bonemeal, rainf

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = oak
description = Oak Tree
depends = rainf, default
optional_depends = stairs, bonemeal
depends = default
optional_depends = stairs, bonemeal, rainf

0
palm/textures/palm_coconut_slice.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -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"},

View File

@ -1,4 +1,4 @@
name = pineapple
description = Pineapple tree for the jungle
depends = default
optional_depends = bonemeal
optional_depends = bonemeal, rainf