make some depends optional
This commit is contained in:
parent
ff27fede90
commit
416400cd5f
@ -1,2 +1 @@
|
|||||||
default
|
default
|
||||||
habitat
|
|
||||||
|
@ -207,7 +207,7 @@ minetest.register_abm({
|
|||||||
})
|
})
|
||||||
|
|
||||||
if sumpf.spawn_plants
|
if sumpf.spawn_plants
|
||||||
and minetest.get_modpath("habitat") then
|
and habitat then
|
||||||
habitat:generate("sumpf:sapling", {"default:dirt_with_grass"},
|
habitat:generate("sumpf:sapling", {"default:dirt_with_grass"},
|
||||||
minp, maxp, 20, 25, 100, 500, {"default:water_source"},30,{"default:desert_sand"})
|
minp, maxp, 20, 25, 100, 500, {"default:water_source"},30,{"default:desert_sand"})
|
||||||
habitat:generate("sumpf:gras", {"default:dirt_with_grass"},
|
habitat:generate("sumpf:gras", {"default:dirt_with_grass"},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
default
|
default
|
||||||
riesenpilz
|
riesenpilz
|
||||||
jungletree
|
jungletree
|
||||||
habitat
|
bucket?
|
||||||
bucket
|
habitat?
|
||||||
stairs
|
stairs?
|
||||||
|
@ -93,29 +93,31 @@ minetest.register_node("sumpf:sumpf2", {
|
|||||||
|
|
||||||
----------------------stairs and slabs------------------
|
----------------------stairs and slabs------------------
|
||||||
|
|
||||||
stairs.register_stair_and_slab("swampstone", "sumpf:junglestone",
|
if stairs then
|
||||||
{cracky=3},
|
stairs.register_stair_and_slab("swampstone", "sumpf:junglestone",
|
||||||
{"sumpf_swampstone.png"},
|
{cracky=3},
|
||||||
"Swamp Stone Stair",
|
{"sumpf_swampstone.png"},
|
||||||
"Swamp Stone Slab",
|
"Swamp Stone Stair",
|
||||||
default.node_sound_stone_defaults()
|
"Swamp Stone Slab",
|
||||||
)
|
default.node_sound_stone_defaults()
|
||||||
|
)
|
||||||
|
|
||||||
stairs.register_stair_and_slab("swampcobble", "sumpf:cobble",
|
stairs.register_stair_and_slab("swampcobble", "sumpf:cobble",
|
||||||
{cracky=3},
|
{cracky=3},
|
||||||
{"sumpf_cobble.png"},
|
{"sumpf_cobble.png"},
|
||||||
"Swamp Cobble Stone Stair",
|
"Swamp Cobble Stone Stair",
|
||||||
"Swamp Cobble Stone Slab",
|
"Swamp Cobble Stone Slab",
|
||||||
default.node_sound_stone_defaults()
|
default.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
|
|
||||||
stairs.register_stair_and_slab("swampstonebrick", "sumpf:junglestonebrick",
|
stairs.register_stair_and_slab("swampstonebrick", "sumpf:junglestonebrick",
|
||||||
{cracky=2, stone=1},
|
{cracky=2, stone=1},
|
||||||
{"sumpf_swampstone_brick.png"},
|
{"sumpf_swampstone_brick.png"},
|
||||||
"Swamp Stone Brick Stair",
|
"Swamp Stone Brick Stair",
|
||||||
"Swamp Stone Brick Slab",
|
"Swamp Stone Brick Slab",
|
||||||
default.node_sound_stone_defaults()
|
default.node_sound_stone_defaults()
|
||||||
)
|
)
|
||||||
|
end
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
|
|
||||||
@ -180,13 +182,15 @@ minetest.register_node("sumpf:dirtywater_source", {
|
|||||||
groups = {water=3, liquid=3, puts_out_fire=1},
|
groups = {water=3, liquid=3, puts_out_fire=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
bucket.register_liquid(
|
if bucket then
|
||||||
"sumpf:dirtywater_source",
|
bucket.register_liquid(
|
||||||
"sumpf:dirtywater_flowing",
|
"sumpf:dirtywater_source",
|
||||||
"sumpf:bucket_dirtywater",
|
"sumpf:dirtywater_flowing",
|
||||||
"bucket.png^sumpf_bucket_dirtywater.png",
|
"sumpf:bucket_dirtywater",
|
||||||
"Swampwater Bucket"
|
"bucket.png^sumpf_bucket_dirtywater.png",
|
||||||
)
|
"Swampwater Bucket"
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
sumpf = {}
|
sumpf = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user