add loot support

This commit is contained in:
FaceDeer 2017-02-11 00:49:26 -07:00
parent 2cd11e2506
commit 47173412e5
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,4 @@
default?
doc?
intllib?
intllib?
loot?

View File

@ -277,4 +277,16 @@ minetest.register_craft({
type = "fuel",
recipe = "breadcrumbs:marker",
burntime = marker_burn_time,
})
})
if minetest.get_modpath("loot") then
loot.register_loot({
weights = { generic = 100 },
payload = {
stack = ItemStack("breadcrumbs:blank"),
min_size = 30,
max_size = 99,
},
})
end