]> git.scottworley.com Git - gold_sword/blob - init.lua
7a47ccebe80ed471a13504b61b41e7df48b24e09
[gold_sword] / init.lua
1 minetest.register_tool("gold_sword:sword_gold", {
2 description = "Gold Sword",
3 inventory_image = "gold_sword_tool_goldsword.png",
4 tool_capabilities = {
5 full_punch_interval = 0.9,
6 max_drop_level=1,
7 groupcaps={
8 snappy={times={[2]=1.40, [3]=0.30}, uses=30, maxlevel=1},
9 },
10 damage_groups = {fleshy=4},
11 },
12 sound = {breaks = "default_tool_breaks"},
13 })
14
15 minetest.register_craft({
16 output = 'gold_sword:sword_gold',
17 recipe = {
18 {'default:gold_ingot'},
19 {'default:gold_ingot'},
20 {'group:stick'},
21 }
22 })