mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Set dungeon_loot as optional dependency
This commit is contained in:
parent
90b210143d
commit
8bbd2e0c46
8 changed files with 12 additions and 8 deletions
|
@ -226,7 +226,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register buckets as dungeon loot
|
-- Register buckets as dungeon loot
|
||||||
if dungeon_loot and dungeon_loot.register then
|
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||||
dungeon_loot.register({
|
dungeon_loot.register({
|
||||||
{name = "bucket:bucket_empty", chance = 0.55},
|
{name = "bucket:bucket_empty", chance = 0.55},
|
||||||
-- water in deserts/ice or above ground, lava otherwise
|
-- water in deserts/ice or above ground, lava otherwise
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
name = bucket
|
name = bucket
|
||||||
description = Minetest Game mod: bucket
|
description = Minetest Game mod: bucket
|
||||||
depends = default, dungeon_loot
|
depends = default
|
||||||
|
optional_depends = dungeon_loot
|
||||||
|
|
|
@ -21,7 +21,7 @@ dofile(carts.modpath.."/rails.lua")
|
||||||
dofile(carts.modpath.."/cart_entity.lua")
|
dofile(carts.modpath.."/cart_entity.lua")
|
||||||
|
|
||||||
-- Register rails as dungeon loot
|
-- Register rails as dungeon loot
|
||||||
if dungeon_loot and dungeon_loot.register then
|
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||||
dungeon_loot.register({
|
dungeon_loot.register({
|
||||||
name = "carts:rail", chance = 0.35, count = {1, 6}
|
name = "carts:rail", chance = 0.35, count = {1, 6}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
name = carts
|
name = carts
|
||||||
description = Carts (formerly boost_cart)
|
description = Carts (formerly boost_cart)
|
||||||
depends = default, player_api, dungeon_loot
|
depends = default, player_api
|
||||||
|
optional_depends = dungeon_loot
|
||||||
|
|
|
@ -146,7 +146,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register farming items as dungeon loot
|
-- Register farming items as dungeon loot
|
||||||
if dungeon_loot and dungeon_loot.register then
|
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||||
dungeon_loot.register({
|
dungeon_loot.register({
|
||||||
{name = "farming:string", chance = 0.5, count = {1, 8}},
|
{name = "farming:string", chance = 0.5, count = {1, 8}},
|
||||||
{name = "farming:wheat", chance = 0.5, count = {2, 5}},
|
{name = "farming:wheat", chance = 0.5, count = {2, 5}},
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
name = farming
|
name = farming
|
||||||
description = Minetest Game mod: farming
|
description = Minetest Game mod: farming
|
||||||
depends = default, wool, stairs, dungeon_loot
|
depends = default, wool, stairs
|
||||||
|
optional_depends = dungeon_loot
|
||||||
|
|
|
@ -230,7 +230,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register glass fragments as dungeon loot
|
-- Register glass fragments as dungeon loot
|
||||||
if dungeon_loot and dungeon_loot.register then
|
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||||
dungeon_loot.register({
|
dungeon_loot.register({
|
||||||
name = "vessels:glass_fragments", chance = 0.35, count = {1, 4}
|
name = "vessels:glass_fragments", chance = 0.35, count = {1, 4}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
name = vessels
|
name = vessels
|
||||||
description = Minetest Game mod: vessels
|
description = Minetest Game mod: vessels
|
||||||
depends = default, dungeon_loot
|
depends = default
|
||||||
|
optional_depends = dungeon_loot
|
||||||
|
|
Loading…
Add table
Reference in a new issue