-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtools.lua
104 lines (94 loc) · 3.59 KB
/
tools.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
local S = magic_materials.S
minetest.register_tool("magic_materials:pick_arcanite", {
description = S("Arcanite Pickaxe"),
inventory_image = "magic_materials_tool_pick_arcanite.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=20, maxlevel=3},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
groups = {pickaxe = 1}
})
minetest.register_alias("magic_materials:pickaxe_arcanite", "magic_materials:pick_arcanite")
minetest.register_tool("magic_materials:shovel_arcanite", {
description = S("Arcanite Shovel"),
inventory_image = "magic_materials_tool_shovel_arcanite.png",
wield_image = "magic_materials_tool_shovel_arcanite.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=20, maxlevel=3},
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
groups = {shovel = 1}
})
minetest.register_tool("magic_materials:axe_arcanite", {
description = S("Arcanite Axe"),
inventory_image = "magic_materials_tool_axe_arcanite.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=20, maxlevel=3},
},
damage_groups = {fleshy=7},
},
sound = {breaks = "default_tool_breaks"},
groups = {axe = 1}
})
minetest.register_tool("magic_materials:sword_arcanite", {
description = S("Arcanite Sword"),
inventory_image = "magic_materials_tool_sword_arcanite.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=30, maxlevel=3},
},
damage_groups = {fleshy=8},
},
sound = {breaks = "default_tool_breaks"},
groups = {sword = 1}
})
if minetest.get_modpath("farming") then
farming.register_hoe("magic_materials:hoe_arcanite", {
description = S("Arcanite Hoe"),
inventory_image = "magic_materials_tool_hoe_arcanite.png",
max_uses = 200,
material = "magic_materials:arcanite_crystal"
})
end
if minetest.get_modpath("toolranks") then
minetest.override_item("magic_materials:pick_arcanite", {
description = toolranks.create_description(S("Arcanite Pickaxe"), 0, 0),
original_description = S("Arcanite Pickaxe"),
after_use = toolranks.new_afteruse
})
minetest.override_item("magic_materials:shovel_arcanite", {
description = toolranks.create_description(S("Arcanite Shovel"), 0, 0),
original_description = S("Arcanite Shovel"),
after_use = toolranks.new_afteruse
})
minetest.override_item("magic_materials:axe_arcanite", {
description = toolranks.create_description(S("Arcanite Axe"), 0, 0),
original_description = S("Arcanite Axe"),
after_use = toolranks.new_afteruse
})
minetest.override_item("magic_materials:sword_arcanite", {
description = toolranks.create_description(S("Arcanite Sword"), 0, 0),
original_description = S("Arcanite Sword"),
after_use = toolranks.new_afteruse
})
minetest.override_item("magic_materials:hoe_arcanite", {
description = toolranks.create_description(S("Arcanite Hoe"), 0, 0),
original_description = S("Arcanite Hoe"),
after_use = toolranks.new_afteruse
})
end