-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
209 lines (181 loc) · 5.19 KB
/
init.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
if minetest.get_modpath("3d_armor") then
dofile(minetest.get_modpath("XenTom").."/armor.lua")
end
minetest.register_craftitem("xentom:xentom_lump", {
description = "XenTom Lump",
inventory_image = "xentom.png"
})
minetest.override_item("default:stone", {drop = {
max_items = 1,
items = {
{items = {'xentom:xentom_lump'}, rarity = 50},
{items = {'default:cobble'}},
}
}})
minetest.register_node( "xentom:block", {
description = "XenTom Block",
tile_images = { "xentom_block.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_tool("xentom:xentom_sword", {
description = "XenTom Sword",
inventory_image = "xentom_sword.png",
groups = {in_creative_inventory=1},
range = 7,
tool_capabilities = {
full_punch_interval = 01.0,
max_drop_level=1,
groupcaps={
snappy={times={[1]=0.90, [2]=0.30, [3]=0.50}, uses=123, maxlevel=5},
},
damage_groups = {fleshy=10},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "xentom:xentom_sword 1",
recipe = {
{"xentom:xentom_lump"},
{"xentom:xentom_lump"},
{"default:stick"}
}
})
minetest.register_tool("xentom:xentom_axe", {
description = "XenTom Axe",
inventory_image = "xentom_axe.png",
tool_capabilities = {
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.50, [2]=1.50, [3]=0.25}, uses=400, maxlevel=2},
fleshy={times={[2]=1.00, [3]=0.50}, uses=1200, maxlevel=1}
}
},
})
minetest.register_craft({
output = "xentom:xentom_axe 1",
recipe = {
{"xentom:xentom_lump","xentom:xentom_lump",""},
{"xentom:xentom_lump","default:stick",""},
{"","default:stick",""}
}
})
minetest.register_tool("xentom:xentom_pickaxe", {
description = "XenTom Pickaxe",
inventory_image = "xentom_pickaxe.png",
groups = {in_creative_inventory=1},
range = 3.4,
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=2,
groupcaps= {
cracky={times={[1]=2.00, [2]=1.50, [3]=0.76}, uses=400, maxlevel=5}
},
damage_groups = {fleshy=0.5},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "xentom:xentom_pickaxe 1",
recipe = {
{"xentom:xentom_lump","xentom:xentom_lump","xentom:xentom_lump"},
{"","default:stick",""},
{"","default:stick",""}
}
})
minetest.register_tool("xentom:xentom_shovel", {
description = "XenTom Shovel",
inventory_image = "xentom_shovel.png",
wield_image = "xentom_shovel.png^[transformR90",
groups = {in_creative_inventory=1},
range = 5,
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.00, [2]=0.40, [3]=0.50}, uses=386, maxlevel=5},
},
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
})
minetest.register_craft({
output = "xentom:xentom_shovel 1",
recipe = {
{"xentom:xentom_lump"},
{"default:stick"},
{"default:stick"}
}
})
minetest.register_craft({
output = 'xentom:block',
recipe = {
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'default:stone', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
}
})
minetest.register_node("xentom:xentom_glass", {
description = "XenTom Glass",
drawtype = "glasslike_framed_optional",
tiles = {"xentom_glass.png"},
paramtype = "light",
sunlight_propagates = true,
groups = {snappy=1,cracky=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = 'xentom:xentom_glass 10',
recipe = {
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'default:glass', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
}
})
minetest.register_craftitem("xentom:xentom_apple", {
description = "XenTom apple",
inventory_image = "xentom_apple.png",
on_use = minetest.item_eat(20),
})
minetest.register_craft({
output = "xentom:xentom_apple 5",
recipe = {
{"xentom:xentom_lump"},
{"default:apple"},
{"xentom:xentom_lump"}
}
})
if minetest.get_modpath("farming") then
farming.register_hoe("xentom:xentom_hoe", {
description = "XenTom Hoe",
inventory_image = "xentom_hoe.png",
max_uses = 4000,
groups = {in_creative_inventory = 1},
range = 5,
damage_groups = {fleshy=1},
})
end
minetest.register_craft({
output = 'xentom:xentom_hoe',
recipe = {
{'xentom:xentom_lump","xentom:xentom_lump'},
{'default:stick'},
{'default:stick'},
}
})
minetest.register_node( "xentom:fake_wool", {
description = "XenTom fake wool",
tile_images = { "wool.png" },
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
output = 'xentom:fake_wool',
recipe = {
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'default:dirt', 'xentom:xentom_lump'},
{'xentom:xentom_lump', 'xentom:xentom_lump', 'xentom:xentom_lump'},
}
})