mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -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
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||
dungeon_loot.register({
|
||||
{name = "bucket:bucket_empty", chance = 0.55},
|
||||
-- water in deserts/ice or above ground, lava otherwise
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = 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")
|
||||
|
||||
-- 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({
|
||||
name = "carts:rail", chance = 0.35, count = {1, 6}
|
||||
})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = carts
|
||||
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
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||
dungeon_loot.register({
|
||||
{name = "farming:string", chance = 0.5, count = {1, 8}},
|
||||
{name = "farming:wheat", chance = 0.5, count = {2, 5}},
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = 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
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||
dungeon_loot.register({
|
||||
name = "vessels:glass_fragments", chance = 0.35, count = {1, 4}
|
||||
})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = vessels
|
||||
description = Minetest Game mod: vessels
|
||||
depends = default, dungeon_loot
|
||||
depends = default
|
||||
optional_depends = dungeon_loot
|
||||
|
|
Loading…
Add table
Reference in a new issue