forked from minetest/minetest_game
Sort loot registration into respective mods (#2602)
This commit is contained in:
@ -144,3 +144,13 @@ minetest.register_craft({
|
||||
recipe = "farming:hoe_wood",
|
||||
burntime = 5,
|
||||
})
|
||||
|
||||
-- Register farming items as dungeon loot
|
||||
if minetest.global_exists("dungeon_loot") then
|
||||
dungeon_loot.register({
|
||||
{name = "farming:string", chance = 0.5, count = {1, 8}},
|
||||
{name = "farming:wheat", chance = 0.5, count = {2, 5}},
|
||||
{name = "farming:seed_cotton", chance = 0.4, count = {1, 4},
|
||||
types = {"normal"}},
|
||||
})
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
name = farming
|
||||
description = Minetest Game mod: farming
|
||||
depends = default, wool, stairs
|
||||
optional_depends = dungeon_loot
|
||||
|
Reference in New Issue
Block a user