fireflies - allow to spawn/put the net fireflies on more biomes if ethereal
* if the etherealmod is detected allow to spawn/put the net/fireflies in more biomes
This commit is contained in:
parent
1624147edc
commit
ea2069d30e
@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
vessels
|
vessels
|
||||||
|
ethereal?
|
@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
-- support to more biomes if ethereal is detected
|
||||||
|
local m_eth = minetest.get_modpath("ethereal")
|
||||||
|
|
||||||
-- firefly
|
-- firefly
|
||||||
minetest.register_node("fireflies:firefly", {
|
minetest.register_node("fireflies:firefly", {
|
||||||
description = "Firefly",
|
description = "Firefly",
|
||||||
@ -150,6 +153,26 @@ minetest.register_decoration({
|
|||||||
decoration = "fireflies:firefly",
|
decoration = "fireflies:firefly",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if m_eth then
|
||||||
|
local biomes_allowed = {
|
||||||
|
"deciduous_forest",
|
||||||
|
"coniferous_forest",
|
||||||
|
"rainforest",
|
||||||
|
"rainforest_swamp",
|
||||||
|
"grassland",
|
||||||
|
"junglee",
|
||||||
|
"junglee_ocean",
|
||||||
|
"bamboo",
|
||||||
|
"mountain"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
local biomes_Allowed = {
|
||||||
|
"deciduous_forest",
|
||||||
|
"coniferous_forest",
|
||||||
|
"rainforest",
|
||||||
|
"rainforest_swamp"
|
||||||
|
}
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {
|
place_on = {
|
||||||
@ -161,12 +184,7 @@ minetest.register_decoration({
|
|||||||
place_offset_y = 3,
|
place_offset_y = 3,
|
||||||
sidelen = 80,
|
sidelen = 80,
|
||||||
fill_ratio = 0.002,
|
fill_ratio = 0.002,
|
||||||
biomes = {
|
biomes = biomes_allowed,
|
||||||
"deciduous_forest",
|
|
||||||
"coniferous_forest",
|
|
||||||
"rainforest",
|
|
||||||
"rainforest_swamp"
|
|
||||||
},
|
|
||||||
y_min = -1,
|
y_min = -1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
decoration = "fireflies:firefly",
|
decoration = "fireflies:firefly",
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
name = fireflies
|
name = fireflies
|
||||||
depends = default, vessels
|
depends = default, vessels
|
||||||
|
optional_depends = ethereal
|
Loading…
x
Reference in New Issue
Block a user