-
-
Notifications
You must be signed in to change notification settings - Fork 266
/
minecraft.go
365 lines (293 loc) · 13.2 KB
/
minecraft.go
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
package gofakeit
// MinecraftOre will generate a random Minecraft ore
func MinecraftOre() string { return minecraftOre(GlobalFaker) }
// MinecraftOre will generate a random Minecraft ore
func (f *Faker) MinecraftOre() string { return minecraftOre(f) }
func minecraftOre(f *Faker) string { return getRandValue(f, []string{"minecraft", "ore"}) }
// MinecraftWood will generate a random Minecraft wood
func MinecraftWood() string { return minecraftWood(GlobalFaker) }
// MinecraftWood will generate a random Minecraft wood
func (f *Faker) MinecraftWood() string { return minecraftWood(f) }
func minecraftWood(f *Faker) string { return getRandValue(f, []string{"minecraft", "wood"}) }
// MinecraftArmorTier will generate a random Minecraft armor tier
func MinecraftArmorTier() string { return minecraftArmorTier(GlobalFaker) }
// MinecraftArmorTier will generate a random Minecraft armor tier
func (f *Faker) MinecraftArmorTier() string { return minecraftArmorTier(f) }
func minecraftArmorTier(f *Faker) string {
return getRandValue(f, []string{"minecraft", "armortier"})
}
// MinecraftArmorPart will generate a random Minecraft armor part
func MinecraftArmorPart() string { return minecraftArmorPart(GlobalFaker) }
// MinecraftArmorPart will generate a random Minecraft armor part
func (f *Faker) MinecraftArmorPart() string { return minecraftArmorPart(f) }
func minecraftArmorPart(f *Faker) string {
return getRandValue(f, []string{"minecraft", "armorpart"})
}
// MinecraftWeapon will generate a random Minecraft weapon
func MinecraftWeapon() string { return minecraftWeapon(GlobalFaker) }
// MinecraftWeapon will generate a random Minecraft weapon
func (f *Faker) MinecraftWeapon() string { return minecraftWeapon(f) }
func minecraftWeapon(f *Faker) string { return getRandValue(f, []string{"minecraft", "weapon"}) }
// MinecraftTool will generate a random Minecraft tool
func MinecraftTool() string { return minecraftTool(GlobalFaker) }
// MinecraftTool will generate a random Minecraft tool
func (f *Faker) MinecraftTool() string { return minecraftTool(f) }
func minecraftTool(f *Faker) string { return getRandValue(f, []string{"minecraft", "tool"}) }
// MinecraftDye will generate a random Minecraft dye
func MinecraftDye() string { return minecraftDye(GlobalFaker) }
// MinecraftDye will generate a random Minecraft dye
func (f *Faker) MinecraftDye() string { return minecraftDye(f) }
func minecraftDye(f *Faker) string { return getRandValue(f, []string{"minecraft", "dye"}) }
// MinecraftFood will generate a random Minecraft food
func MinecraftFood() string { return minecraftFood(GlobalFaker) }
// MinecraftFood will generate a random Minecraft food
func (f *Faker) MinecraftFood() string { return minecraftFood(f) }
func minecraftFood(f *Faker) string { return getRandValue(f, []string{"minecraft", "food"}) }
// MinecraftAnimal will generate a random Minecraft animal
func MinecraftAnimal() string { return minecraftAnimal(GlobalFaker) }
// MinecraftAnimal will generate a random Minecraft animal
func (f *Faker) MinecraftAnimal() string { return minecraftAnimal(f) }
func minecraftAnimal(f *Faker) string {
return getRandValue(f, []string{"minecraft", "animal"})
}
// MinecraftVillagerJob will generate a random Minecraft villager job
func MinecraftVillagerJob() string { return minecraftVillagerJob(GlobalFaker) }
// MinecraftVillagerJob will generate a random Minecraft villager job
func (f *Faker) MinecraftVillagerJob() string { return minecraftVillagerJob(f) }
func minecraftVillagerJob(f *Faker) string {
return getRandValue(f, []string{"minecraft", "villagerjob"})
}
// MinecraftVillagerStation will generate a random Minecraft villager station
func MinecraftVillagerStation() string { return minecraftVillagerStation(GlobalFaker) }
// MinecraftVillagerStation will generate a random Minecraft villager station
func (f *Faker) MinecraftVillagerStation() string { return minecraftVillagerStation(f) }
func minecraftVillagerStation(f *Faker) string {
return getRandValue(f, []string{"minecraft", "villagerstation"})
}
// MinecraftVillagerLevel will generate a random Minecraft villager level
func MinecraftVillagerLevel() string { return minecraftVillagerLevel(GlobalFaker) }
// MinecraftVillagerLevel will generate a random Minecraft villager level
func (f *Faker) MinecraftVillagerLevel() string { return minecraftVillagerLevel(f) }
func minecraftVillagerLevel(f *Faker) string {
return getRandValue(f, []string{"minecraft", "villagerlevel"})
}
// MinecraftMobPassive will generate a random Minecraft mob passive
func MinecraftMobPassive() string { return minecraftMobPassive(GlobalFaker) }
// MinecraftMobPassive will generate a random Minecraft mob passive
func (f *Faker) MinecraftMobPassive() string { return minecraftMobPassive(f) }
func minecraftMobPassive(f *Faker) string {
return getRandValue(f, []string{"minecraft", "mobpassive"})
}
// MinecraftMobNeutral will generate a random Minecraft mob neutral
func MinecraftMobNeutral() string { return minecraftMobNeutral(GlobalFaker) }
// MinecraftMobNeutral will generate a random Minecraft mob neutral
func (f *Faker) MinecraftMobNeutral() string { return minecraftMobNeutral(f) }
func minecraftMobNeutral(f *Faker) string {
return getRandValue(f, []string{"minecraft", "mobneutral"})
}
// MinecraftMobHostile will generate a random Minecraft mob hostile
func MinecraftMobHostile() string { return minecraftMobHostile(GlobalFaker) }
// MinecraftMobHostile will generate a random Minecraft mob hostile
func (f *Faker) MinecraftMobHostile() string { return minecraftMobHostile(f) }
func minecraftMobHostile(f *Faker) string {
return getRandValue(f, []string{"minecraft", "mobhostile"})
}
// MinecraftMobBoss will generate a random Minecraft mob boss
func MinecraftMobBoss() string { return minecraftMobBoss(GlobalFaker) }
// MinecraftMobBoss will generate a random Minecraft mob boss
func (f *Faker) MinecraftMobBoss() string { return minecraftMobBoss(f) }
func minecraftMobBoss(f *Faker) string {
return getRandValue(f, []string{"minecraft", "mobboss"})
}
// MinecraftBiome will generate a random Minecraft biome
func MinecraftBiome() string { return minecraftBiome(GlobalFaker) }
// MinecraftBiome will generate a random Minecraft biome
func (f *Faker) MinecraftBiome() string { return minecraftBiome(f) }
func minecraftBiome(f *Faker) string { return getRandValue(f, []string{"minecraft", "biome"}) }
// MinecraftWeather will generate a random Minecraft weather
func MinecraftWeather() string { return minecraftWeather(GlobalFaker) }
// MinecraftWeather will generate a random Minecraft weather
func (f *Faker) MinecraftWeather() string { return minecraftWeather(f) }
func minecraftWeather(f *Faker) string { return getRandValue(f, []string{"minecraft", "weather"}) }
func addMinecraftLookup() {
AddFuncLookup("minecraftore", Info{
Display: "Minecraft ore",
Category: "minecraft",
Description: "Naturally occurring minerals found in the game Minecraft, used for crafting purposes",
Example: "coal",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftOre(f), nil
},
})
AddFuncLookup("minecraftwood", Info{
Display: "Minecraft wood",
Category: "minecraft",
Description: "Natural resource in Minecraft, used for crafting various items and building structures",
Example: "oak",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftWood(f), nil
},
})
AddFuncLookup("minecraftarmortier", Info{
Display: "Minecraft armor tier",
Category: "minecraft",
Description: "Classification system for armor sets in Minecraft, indicating their effectiveness and protection level",
Example: "iron",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftArmorTier(f), nil
},
})
AddFuncLookup("minecraftarmorpart", Info{
Display: "Minecraft armor part",
Category: "minecraft",
Description: "Component of an armor set in Minecraft, such as a helmet, chestplate, leggings, or boots",
Example: "helmet",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftArmorPart(f), nil
},
})
AddFuncLookup("minecraftweapon", Info{
Display: "Minecraft weapon",
Category: "minecraft",
Description: "Tools and items used in Minecraft for combat and defeating hostile mobs",
Example: "bow",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftWeapon(f), nil
},
})
AddFuncLookup("minecrafttool", Info{
Display: "Minecraft tool",
Category: "minecraft",
Description: "Items in Minecraft designed for specific tasks, including mining, digging, and building",
Example: "shovel",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftTool(f), nil
},
})
AddFuncLookup("minecraftdye", Info{
Display: "Minecraft dye",
Category: "minecraft",
Description: "Items used to change the color of various in-game objects",
Example: "white",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftDye(f), nil
},
})
AddFuncLookup("minecraftfood", Info{
Display: "Minecraft food",
Category: "minecraft",
Description: "Consumable items in Minecraft that provide nourishment to the player character",
Example: "apple",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftFood(f), nil
},
})
AddFuncLookup("minecraftanimal", Info{
Display: "Minecraft animal",
Category: "minecraft",
Description: "Non-hostile creatures in Minecraft, often used for resources and farming",
Example: "chicken",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftAnimal(f), nil
},
})
AddFuncLookup("minecraftvillagerjob", Info{
Display: "Minecraft villager job",
Category: "minecraft",
Description: "The profession or occupation assigned to a villager character in the game",
Example: "farmer",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftVillagerJob(f), nil
},
})
AddFuncLookup("minecraftvillagerstation", Info{
Display: "Minecraft villager station",
Category: "minecraft",
Description: "Designated area or structure in Minecraft where villagers perform their job-related tasks and trading",
Example: "furnace",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftVillagerStation(f), nil
},
})
AddFuncLookup("minecraftvillagerlevel", Info{
Display: "Minecraft villager level",
Category: "minecraft",
Description: "Measure of a villager's experience and proficiency in their assigned job or profession",
Example: "master",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftVillagerLevel(f), nil
},
})
AddFuncLookup("minecraftmobpassive", Info{
Display: "Minecraft mob passive",
Category: "minecraft",
Description: "Non-aggressive creatures in the game that do not attack players",
Example: "cow",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftMobPassive(f), nil
},
})
AddFuncLookup("minecraftmobneutral", Info{
Display: "Minecraft mob neutral",
Category: "minecraft",
Description: "Creature in the game that only becomes hostile if provoked, typically defending itself when attacked",
Example: "bee",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftMobNeutral(f), nil
},
})
AddFuncLookup("minecraftmobhostile", Info{
Display: "Minecraft mob hostile",
Category: "minecraft",
Description: "Aggressive creatures in the game that actively attack players when encountered",
Example: "spider",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftMobHostile(f), nil
},
})
AddFuncLookup("minecraftmobboss", Info{
Display: "Minecraft mob boss",
Category: "minecraft",
Description: "Powerful hostile creature in the game, often found in challenging dungeons or structures",
Example: "ender dragon",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftMobBoss(f), nil
},
})
AddFuncLookup("minecraftbiome", Info{
Display: "Minecraft biome",
Category: "minecraft",
Description: "Distinctive environmental regions in the game, characterized by unique terrain, vegetation, and weather",
Example: "forest",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftBiome(f), nil
},
})
AddFuncLookup("minecraftweather", Info{
Display: "Minecraft weather",
Category: "minecraft",
Description: "Atmospheric conditions in the game that include rain, thunderstorms, and clear skies, affecting gameplay and ambiance",
Example: "rain",
Output: "string",
Generate: func(f *Faker, m *MapParams, info *Info) (any, error) {
return minecraftWeather(f), nil
},
})
}