mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-19 12:44:54 -04:00
Sort loot registration into respective mods
This commit is contained in:
parent
34b410319e
commit
46e4c7be12
9 changed files with 47 additions and 20 deletions
|
@ -225,3 +225,19 @@ minetest.register_craft({
|
|||
replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}},
|
||||
})
|
||||
|
||||
-- Register buckets as dungeon loot
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
local loot_list = {
|
||||
{name = "bucket:bucket_empty", chance = 0.55},
|
||||
-- water in deserts/ice or above ground, lava otherwise
|
||||
{name = "bucket:bucket_water", chance = 0.45,
|
||||
types = {"sandstone", "desert", "ice"}},
|
||||
{name = "bucket:bucket_water", chance = 0.45, y = {0, 32768},
|
||||
types = {"normal"}},
|
||||
{name = "bucket:bucket_lava", chance = 0.45, y = {-32768, -1},
|
||||
types = {"normal"}},
|
||||
}
|
||||
for _,loot in pairs(loot_list) do
|
||||
dungeon_loot.register(loot)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = bucket
|
||||
description = Minetest Game mod: bucket
|
||||
depends = default
|
||||
depends = default, dungeon_loot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue