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
|
-- Decoration
|
||||||
--
|
--
|
||||||
|
|
||||||
|
if minetest.get_modpath("rainf") then
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"rainf:meadow"},
|
place_on = {"rainf:meadow"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
noise_params = {
|
noise_params = {
|
||||||
offset = 0.01,
|
offset = 0.01,
|
||||||
scale = 0.001,
|
scale = 0.001,
|
||||||
spread = {x = 255, y = 255, z = 255},
|
spread = {x = 255, y = 255, z = 255},
|
||||||
seed = 32,
|
seed = 32,
|
||||||
octaves = 3,
|
octaves = 3,
|
||||||
persist = 0.67
|
persist = 0.67
|
||||||
},
|
},
|
||||||
biomes = {"rainf"},
|
biomes = {"rainf"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 80,
|
y_max = 80,
|
||||||
schematic = birch.birchtree,
|
schematic = birch.birchtree,
|
||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
place_offset_y = 1,
|
place_offset_y = 1,
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Nodes
|
-- Nodes
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = birch
|
name = birch
|
||||||
description = Birch Tree for Grassland
|
description = Birch Tree for Grassland
|
||||||
depends = rainf, default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -66,7 +66,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"rainf:meadow"},
|
place_on = {"rainf:meadow"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = chestnuttree
|
name = chestnuttree
|
||||||
description = Chesnut Tree for Grassland
|
description = Chesnut Tree for Grassland
|
||||||
depends = rainf, default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -25,7 +25,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:dirt_with_rainforest_litter"},
|
place_on = {"default:dirt_with_rainforest_litter"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = ebony
|
name = ebony
|
||||||
description = Ebony Tree for Rainforest Biome
|
description = Ebony Tree for Rainforest Biome
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -24,7 +24,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"rainf:meadow"},
|
place_on = {"rainf:meadow"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = hollytree
|
name = hollytree
|
||||||
description = Hollytree
|
description = Hollytree
|
||||||
depends = rainf, default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -24,7 +24,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:dirt_with_rainforest_litter"},
|
place_on = {"default:dirt_with_rainforest_litter"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = jacaranda
|
name = jacaranda
|
||||||
description = Jacaranda for jungles
|
description = Jacaranda for jungles
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -26,7 +26,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:dirt_with_rainforest_litter"},
|
place_on = {"default:dirt_with_rainforest_litter"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = mahogany
|
name = mahogany
|
||||||
description = Mahogany Tree for Rainforest Biome
|
description = Mahogany Tree for Rainforest Biome
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -25,7 +25,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"rainf:meadow"},
|
place_on = {"rainf:meadow"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = maple
|
name = maple
|
||||||
description = Maple Tree
|
description = Maple Tree
|
||||||
depends = rainf, default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
optional_depends = stairs, bonemeal, rainf
|
||||||
|
|
|
@ -50,7 +50,7 @@ end
|
||||||
-- Decoration
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"rainf:meadow"},
|
place_on = {"rainf:meadow"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = oak
|
name = oak
|
||||||
description = Oak Tree
|
description = Oak Tree
|
||||||
depends = rainf, default
|
depends = default
|
||||||
optional_depends = stairs, bonemeal
|
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
|
-- 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({
|
minetest.register_decoration({
|
||||||
deco_type = "schematic",
|
deco_type = "schematic",
|
||||||
place_on = {"default:dirt_with_rainforest_litter"},
|
place_on = {"default:dirt_with_rainforest_litter"},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = pineapple
|
name = pineapple
|
||||||
description = Pineapple tree for the jungle
|
description = Pineapple tree for the jungle
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = bonemeal
|
optional_depends = bonemeal, rainf
|
||||||
|
|
Loading…
Reference in New Issue