bow2-cd2025/items.lua
2021-08-30 16:05:01 -06:00

40 lines
810 B
Lua

nextgen_bows.register_bow('bow_wood', {
description = 'Wooden Bow',
uses = 385,
-- `crit_chance` 10% chance, 5 is 20% chance
-- (1 / crit_chance) * 100 = % chance
crit_chance = 10,
recipe = {
{'', 'default:stick', 'farming:string'},
{'default:stick', '', 'farming:string'},
{'', 'default:stick', 'farming:string'},
}
})
nextgen_bows.register_arrow('arrow', {
description = 'Arrow',
inventory_image = 'nextgen_bows_arrow.png',
craft = {
{'default:flint'},
{'group:stick'},
{'group:wool'}
},
tool_capabilities = {
full_punch_interval = 1,
max_drop_level = 0,
damage_groups = {fleshy=2}
}
})
minetest.register_craft({
type = 'fuel',
recipe = 'nextgen_bows:bow_wood',
burntime = 3,
})
minetest.register_craft({
type = 'fuel',
recipe = 'nextgen_bows:arrow',
burntime = 1,
})