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