forked from archfan7411/shadowrealm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
items.lua
66 lines (58 loc) · 1.65 KB
/
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
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
-- used to craft Aspfang Sword
minetest.register_craftitem("shadowrealm:asp_fang", {
description = "Asp Fang",
inventory_image = "shadowrealm_asp_fang.png",
})
-- used to bait Gargantuan
minetest.register_craftitem("shadowrealm:asp_meat", {
description = "Asp Meat",
inventory_image = "shadowrealm_asp_meat.png",
})
-- obligatory item, but not usable as bait
minetest.register_craftitem("shadowrealm:asp_meat_cooked", {
description = "Cooked Asp Meat",
inventory_image = "shadowrealm_asp_meat_cooked.png",
on_use = minetest.item_eat(8),
})
minetest.register_craft({
type = "cooking",
output = "shadowrealm:asp_meat_cooked",
recipe = "shadowrealm:asp_meat",
cooktime = 4,
})
-- used to bait Asp
minetest.register_craftitem("shadowrealm:caramelized_apple", {
description = "Carmelized Apple",
inventory_image = "shadowrealm_caramelized_apple.png",
on_use = minetest.item_eat(4),
})
minetest.register_craft({
type = "cooking",
output = "shadowrealm:caramelized_apple",
recipe = "default:apple",
cooktime = 4,
})
minetest.register_tool("shadowrealm:asptooth_sword", {
description = "Asptooth Sword",
inventory_image = "shadowrealm_asptooth_sword.png",
})
minetest.register_tool("shadowrealm:aspfang_sword", {
description = "Aspfang Sword",
inventory_image = "shadowrealm_aspfang_sword.png",
wield_scale = {x = 2, y = 2, z = 1},
tool_capabilities = {
full_punch_interval = 0.6,
max_drop_level = 1,
damage_groups = {fleshy=8},
},
groups = {sword = 1}
})
minetest.register_craft({
type = "shaped",
output = "shadowrealm:aspfang_sword",
recipe = {
{"", "shadowrealm:asp_fang", ""},
{"", "shadowrealm:asp_fang", ""},
{"", "group:stick", ""},
},
})