forked from starninjas/nextgen_bows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitems.lua
41 lines (37 loc) · 867 Bytes
/
items.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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({
type = 'fuel',
recipe = 'nextgen_bows:bow_wood',
burntime = 3,
})
minetest.register_craft({
type = 'fuel',
recipe = 'nextgen_bows:arrow',
burntime = 1,
})