bow2-cd2025/items.lua
Maurus a36f7897da
Added new arrows recipe with Animalia feathers
New arrows recipe from flint, stick, and feather from Animalia mod.
2024-06-23 00:39:52 -03:00

49 lines
1010 B
Lua

local S = minetest.get_translator("nextgen_bows")
nextgen_bows.register_bow('bow_wood', {
description = S('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 = S('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({
output = 'nextgen_bows:arrow 4',
recipe = {{'default:flint'},
{'group:stick'},
{'animalia:feather'}}
})
minetest.register_craft({
type = 'fuel',
recipe = 'nextgen_bows:bow_wood',
burntime = 3,
})
minetest.register_craft({
type = 'fuel',
recipe = 'nextgen_bows:arrow',
burntime = 1,
})