-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
406 lines (393 loc) · 9.99 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
--Boots of Swiftness awards
--Lightning Fast
if minetest.get_modpath("speed_boots") then
awards.register_award("award_lightning_fast",{
title = ("Lightning Fast"),
description = ("Craft 5 boots of swiftness."),
icon = "speed_boots_inv.png",
difficulty = 0.9,
trigger = {
type = "craft",
item = "speed_boots:boots_speed",
target = 5
}
})
end
--3D Armor awards (in the future i want to add achievements with multiple item requirements. just don't know how to atm)
--Trying to be a Tree Monster
if minetest.get_modpath("3d_armor") then
awards.register_award("award_armor_wood",{
title = ("Trying to be a Tree Monster"),
description = ("Craft 4 wooden chestplates."),
icon = "shields_inv_shield_wood.png",
difficulty = 0.03,
trigger = {
type = "craft",
item = "3d_armor:chestplate_wood",
target = 4
}
})
--Jumbo Cactus
awards.register_award("award_armor_cactus",{
title = ("Jumbo Cactus"),
description = ("Craft 4 cactus chestplates."),
icon = "shields_inv_shield_cactus.png",
difficulty = 0.03,
trigger = {
type = "craft",
item = "3d_armor:chestplate_cactus",
target = 4
}
})
--Iron Man
awards.register_award("award_armor_steel",{
title = ("Iron Man"),
description = ("Craft 4 steel chestplates."),
icon = "shields_inv_shield_steel.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "3d_armor:chestplate_iron",
target = 4
}
})
--Comedy Gold
awards.register_award("award_armor_gold",{
title = ("Comedy Gold"),
description = ("Craft 4 gold chestplates."),
icon = "shields_inv_shield_gold.png",
difficulty = 0.9,
trigger = {
type = "craft",
item = "3d_armor:chestplate_gold",
target = 4
}
})
--Covered in Diamonds
awards.register_award("award_armor_diamond",{
title = ("Covered in Diamonds"),
description = ("Craft 4 diamond chestplates."),
icon = "shields_inv_shield_diamond.png",
difficulty = 0.9,
trigger = {
type = "craft",
item = "3d_armor:chestplate_diamond",
target = 4
}
})
--Upgrades, people. Upgrades.
awards.register_award("award_shield_enhanced",{
title = ("Upgrades, people. Upgrades."),
description = ("Enhance your shield using steel ingots."),
icon = "shields_inv_shield_enhanced_wood.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "shields:shield_enhanced_wood",
target = 1
}
})
end
--Baked Clay awards
--Adobe Maker
if minetest.get_modpath("bakedclay") then
awards.register_award("award_clay_natural",{
title = ("Adobe Maker"),
description = ("Place 100 blocks of natural clay."),
icon = "baked_clay_natural.png",
difficulty = 0.04,
trigger = {
type = "place",
node = "bakedclay:natural",
target = 100
}
})
--The Grass is Greener on the other Side
awards.register_award("award_clay_flower1",{
title = ("The Grass is Greener on the other Side"),
description = ("Harvest your first reed mannagrass."),
icon = "baked_clay_mannagrass.png",
difficulty = 0.009,
trigger = {
type = "dig",
node = "bakedclay:mannagrass",
target = 1
}
})
--Thistles and Thimbles
awards.register_award("award_clay_flower2",{
title = ("Thistles and Thimbles"),
description = ("Harvest your first thistle."),
icon = "baked_clay_thistle.png",
difficulty = 0.04,
trigger = {
type = "dig",
node = "bakedclay:thistle",
target = 1
}
})
--This Isn't a Geranium...
awards.register_award("award_clay_flower3",{
title = ("This Isn't a Geranium..."),
description = ("Harvest your first blue delphinium."),
icon = "baked_clay_delphinium.png",
difficulty = 0.04,
trigger = {
type = "dig",
node = "bakedclay:delphinium",
target = 1
}
})
--Looks More Magenta than Pink
awards.register_award("award_clay_flower4",{
title = ("Looks More Magenta than Pink"),
description = ("Harvest your first lazarus bell."),
icon = "baked_clay_lazarus.png",
difficulty = 0.04,
trigger = {
type = "dig",
node = "bakedclay:lazarus",
target = 1
}
})
--99 Shades of Grey
awards.register_award("award_clay_glazed",{
title = ("99 Shades of Grey"),
description = ("Place 100 blocks of white glazed terracotta."),
icon = "baked_clay_terracotta_white.png",
difficulty = 0.3,
trigger = {
type = "place",
node = "bakedclay:terracotta_white",
target = 100
}
})
end
--Bonemeal Awards
--Bona Fide
if minetest.get_modpath("bonemeal") then
awards.register_award("award_bonemeal",{
title = ("Bona Fide"),
description = ("Craft 50 bonemeal."),
icon = "bonemeal_item.png",
difficulty = 0.6,
trigger = {
type = "craft",
item = "bonemeal:bonemeal",
target = 50
}
})
--Master Composter
awards.register_award("award_fertiliser",{
title = ("Master Composter"),
description = ("Craft 100 fertiliser."),
icon = "bonemeal_fertiliser.png",
difficulty = 0.6,
trigger = {
type = "craft",
item = "bonemeal:fertiliser",
target = 100
}
})
--Made of Seeds
awards.register_award("award_mulch",{
title = ("Made of Seeds"),
description = ("Craft 50 mulch."),
icon = "bonemeal_mulch.png",
difficulty = 0.6,
trigger = {
type = "craft",
item = "bonemeal:mulch",
target = 50
}
})
end
--Carpets
if minetest.get_modpath("carpets") then
--Like Sheets of Paper
awards.register_award("award_carpet_white",{
title = ("Like Sheets of Paper"),
description = ("Craft 320 white carpets."),
icon = "wool_white.png",
difficulty = 0.1,
trigger = {
type = "craft",
item = "carpets:wool_white",
target = 320
}
})
end
--Cups
if minetest.get_modpath("cups") then
--Third Place Triathlete
awards.register_award("award_cups_bronze",{
title = ("Third Place Triathlete"),
description = ("Craft 12 bronze cups."),
icon = "cups_bronze.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "cups:cup_bronze",
target = 12
}
})
--Gold Rank Player
awards.register_award("award_cups_gold",{
title = ("Gold Rank Player"),
description = ("Craft 14 golden cups."),
icon = "cups_gold.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "cups:cup_gold",
target = 14
}
})
--Better than First
awards.register_award("award_cups_diamond",{
title = ("Better than First"),
description = ("Craft 16 diamond cups."),
icon = "cups_diamond.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "cups:cup_gold",
target = 14
}
})
end
--Cups and More Ores
if minetest.get_modpath("cups") and minetest.get_modpath("moreores") then
--Silver Medal
awards.register_award("award_cups_silver",{
title = ("Silver Medal"),
description = ("Craft 15 silver cups."),
icon = "cups_silver.png",
difficulty = 0.5,
trigger = {
type = "craft",
item = "cups:cup_silver",
target = 15
}
})
end
--More Ores
if minetest.get_modpath("moreores") then
--First Silver Find
awards.register_award("award_silver_ore",{
title = ("First Silver Find"),
description = ("Mine your first silver ore."),
icon = "moreores_silver_lump.png",
difficulty = 0.9,
trigger = {
type = "dig",
node = "moreores:mineral_silver",
target = 1
}
})
--First Mithril Find
awards.register_award("award_mithril_ore",{
title = ("First Mithril Find"),
description = ("Mine your first mithril ore."),
icon = "moreores_mithril_lump.png",
difficulty = 0.9,
trigger = {
type = "dig",
node = "moreores:mineral_silver",
target = 1
}
})
end
--More Ores and Carts
if minetest.get_modpath("moreores") and minetest.get_modpath("carts") then
--The Way Forward
awards.register_award("award_on_the_way_copper", {
title = ("The Way Forward"),
description = ("Place 100 copper rails."),
icon = "moreores_copper_rail.png",
difficulty = 0.1,
trigger = {
type = "place",
node = "moreores:copper_rail",
target = 100
}
})
end
--More Ores and 3D Armor
if minetest.get_modpath("moreores") and minetest.get_modpath("3d_armor") then
--Master of Mithril
awards.register_award("award_armor_mithril", {
title = ("Master of Mithril"),
description = ("Craft 4 mithril chestplates."),
icon = "shields_inv_shield_mithril.png",
difficulty = 1,
trigger = {
type = "craft",
node = "3d_armor:chestplate_mithril",
target = 4
}
})
end
--Quartz
if minetest.get_modpath("quartz") then
--First Quartz Find
awards.register_award("award_quartz_ore",{
title = ("First Quartz Find"),
description = ("Mine your first quartz ore."),
icon = "quartz_crystal_full.png",
difficulty = 0.9,
trigger = {
type = "dig",
node = "quartz:quartz_ore",
target = 1
}
})
--Rome Wasn't Built in a Day
awards.register_award("award_quartz_block",{
title = ("Rome Wasn't Built in a Day"),
description = ("Place 100 blocks of quartz."),
icon = "quartz_block.png",
difficulty = 0.09,
trigger = {
type = "place",
node = "quartz:block",
target = 100
}
})
--Rome Was Built in 448,585 Days
awards.register_award("award_quartz_chiseled",{
title = ("Rome Was Built in 448,585 Days"),
description = ("Place 100 blocks of chiseled quartz."),
icon = "quartz_chiseled.png",
difficulty = 0.09,
trigger = {
type = "place",
node = "quartz:chiseled",
target = 100
}
})
--Pillar Up
awards.register_award("award_quartz_pillar",{
title = ("Pillar Up"),
description = ("Place 100 blocks of quartz pillars."),
icon = "quartz_pillar_side.png",
difficulty = 0.09,
trigger = {
type = "place",
node = "quartz:pillar",
target = 100
}
})
--Rest in Pieces
awards.register_award("award_quartz_crystal_piece",{
title = ("Rest in Pieces"),
description = ("Craft 360 quartz crystal pieces."),
icon = "quartz_crystal_piece.png",
difficulty = 0.03,
trigger = {
type = "craft",
item = "quartz:quartz_crystal_piece",
target = 360
}
})
end