/
diamond.lua
37 lines (36 loc) · 1.15 KB
/
diamond.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
-- Make such a thing
minetest.register_tool("durapick:diamond_pick", {
description = "Durable Diamond Pickaxe",
inventory_image = "durapick_diamond.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=(durapick.durabilities.diamond * durapick.factor), maxlevel=3},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
groups = {pickaxe = 1}
})
if durapick.use_previous_in_recipe then
minetest.register_craft({
type = "shaped",
output = "durapick:diamond_pick 1",
recipe = {
{durapick.resource.diamond, "durapick:mese_pick", durapick.resource.diamond},
{"", durapick.resource.stick, ""},
{"", durapick.resource.stick, ""}
},
})
else
minetest.register_craft({
type = "shaped",
output = "durapick:diamond_pick 1",
recipe = {
{durapick.resource.diamond, durapick.resource.diamond, durapick.resource.diamond},
{"", durapick.resource.stick, ""},
{"", durapick.resource.stick, ""}
},
})
end