add loot support
This commit is contained in:
parent
2cd11e2506
commit
47173412e5
@ -1,3 +1,4 @@
|
||||
default?
|
||||
doc?
|
||||
intllib?
|
||||
intllib?
|
||||
loot?
|
14
init.lua
14
init.lua
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user