-
Notifications
You must be signed in to change notification settings - Fork 1
/
items.schema.json
405 lines (405 loc) · 9.42 KB
/
items.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://notenoughupdates.org/schemas/items.schema.json",
"definitions": {
"ingredient": {
"type": "string",
"description": "An ingredient is an item id, optionally followed by `:{itemCount}`. The item count may be a double, if the item id is `SKYBLOCK_COIN`"
},
"craftingrecipe": {
"type": "object",
"description": "A crafting recipe.",
"patternProperties": {
"[A-C][1-3]": {
"allOf": [
{
"$ref": "#/definitions/ingredient"
}
],
"description": "The ingredient needed for the item in this slot."
}
},
"properties": {
"count": {
"type": "integer",
"description": "Count of items output by this crafting recipe",
"minimum": 1
},
"type": {
"const": "crafting"
},
"crafttext": {
"type": "string",
"description": "The text display when viewing a recipe that the user doesn't have the requirements for."
},
"overrideOutputId": {
"type": "string",
"description": "Set to override the internalName of the resulting item"
}
},
"required": [
"A1",
"A2",
"A3",
"B1",
"B2",
"B3",
"C1",
"C2",
"C3"
],
"additionalProperties": false
}
},
"description": "A Hypixel SkyBlock item",
"type": "object",
"properties": {
"itemid": {
"type": "string",
"description": "The minecraft item id of the item."
},
"displayname": {
"type": "string",
"description": "The display name of the item."
},
"nbttag": {
"type": "string",
"description": "The NBT tag of the item, in SNBT."
},
"damage": {
"type": "integer",
"description": "The damage of the item."
},
"lore": {
"type": "array",
"description": "The lore of the item.",
"items": {
"type": "string"
},
"minLength": 1
},
"recipes": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/craftingrecipe"
},
{
"description": "A forging recipe",
"type": "object",
"properties": {
"type": {
"const": "forge"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/definitions/ingredient"
},
"minLength": 1
},
"overrideOutputId": {
"type": "string",
"description": "Set to override the internalName of the resulting item"
},
"count": {
"type": "number",
"minimum": 1,
"description": "Set to override the amount of resulting items"
},
"duration": {
"type": "integer",
"description": "The amount of time this item takes to forge in seconds"
},
"hotmLevel": {
"type": "integer",
"description": "The Heart of the Mountain level needed to forge this item"
}
},
"required": [
"type",
"inputs",
"duration"
],
"additionalProperties": false
},
{
"description": "A villager trade on a stranded profile",
"type": "object",
"properties": {
"type": {
"const": "trade"
},
"result": {
"allOf": [
{
"$ref": "#/definitions/ingredient"
}
],
"description": "The output ingredient for this trade."
},
"cost": {
"allOf": [
{
"$ref": "#/definitions/ingredient"
}
],
"description": "The cost ingredient for this trade."
},
"min": {
"type": "integer",
"description": "The minimum amount of items this trade can cost"
},
"max": {
"type": "integer",
"description": "The maximum amount of items this trade can cost"
}
},
"anyOf": [
{
"required": [
"type",
"result",
"cost"
]
},
{
"required": [
"type",
"result",
"cost",
"min",
"max"
]
}
],
"additionalProperties": false
},
{
"type": "object",
"description": "Mob drops. Should be on the actual monster item itself, not on the drops it produces",
"properties": {
"type": {
"const": "drops"
},
"drops": {
"type": "array",
"description": "The drops dropped by the monster after being killed",
"items": {
"anyOf": [
{
"$ref": "#/definitions/ingredient"
},
{
"type": "object",
"description": "A drop with a drop chance",
"properties": {
"id": {
"$ref": "#/definitions/ingredient"
},
"chance": {
"type": "string",
"description": "The drop chance for this item",
"pattern": "(100|[0-9]{1,2}(\\.[0-9]+)?)%( per .*)?"
},
"extra": {
"type": "array",
"description": "A list of extra lines of information to be added to the drop lore",
"items": {
"type": "string"
}
}
},
"required": [
"id"
],
"additionalProperties": false
}
]
}
},
"level": {
"type": "integer",
"description": "The level of the mob"
},
"coins": {
"type": "integer",
"description": "The amount of coins dropped on death"
},
"xp": {
"type": "integer",
"description": "The amount of vanilla experience dropped on death"
},
"combat_xp": {
"type": "integer",
"description": "The amount of combat experience dropped on death"
},
"name": {
"type": "string",
"description": "The name of this mob"
},
"render": {
"type": "string",
"description": "The entity renderer to use. Either @neurepo:mobs/somemob.json, or a direct entity reference"
},
"extra": {
"type": "array",
"description": "A list of extra lines of information to be added to the mob lore",
"items": {
"type": "string"
}
},
"panorama": {
"type": "string",
"enum": [
"dynamic",
"hub",
"mining_1",
"mining_2",
"mining_3",
"combat_1",
"crimson_isle",
"combat_3",
"farming_1",
"foraging_1",
"winter",
"dungeon",
"dungeon_hub",
"crystal_hollows",
"instanced",
"garden",
"rift",
"mineshaft"
],
"description": "The /locraw name of the panorama to use for displaying as a background"
}
},
"required": [
"name",
"type",
"drops"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "npc_shop"
},
"cost": {
"type": "array",
"items": {
"$ref": "#/definitions/ingredient"
},
"minLength": 1
},
"result": {
"$ref": "#/definitions/ingredient"
}
},
"required": [
"cost",
"type",
"result"
],
"additionalItems": false
},
{
"type": "object",
"properties": {
"type": {
"const": "katgrade"
},
"output": {
"$ref": "#/definitions/ingredient"
},
"input": {
"allOf": [
{
"$ref": "#/definitions/ingredient"
}
],
"description": "The input pet, not extra bonus items to be used while upgrading"
},
"items": {
"type": "array",
"description": "Bonus items needed for the upgrade",
"items": {
"$ref": "#/definitions/ingredient"
}
},
"coins": {
"type": "integer",
"description": "Amount of coins needed for the upgrade \"at level 0\" (without any cost reductions)"
},
"time": {
"type": "integer",
"description": "Time needed for the upgrade in seconds"
}
},
"required": [
"type",
"input",
"output",
"coins",
"time"
],
"additionalProperties": false,
"description": "A pet upgrade performed at kat"
}
]
}
},
"recipe": {
"$ref": "#/definitions/craftingrecipe"
},
"internalname": {
"type": "string",
"description": "The item's Hypixel Skyblock id."
},
"clickcommand": {
"enum": [
"viewrecipe",
"viewpotion",
""
],
"description": "The command that is executed when the item is clicked in the item list. Deprecated"
},
"modver": {
"type": "string",
"description": "The version of the mod last used to edit this item."
},
"useneucraft": {
"type": "boolean",
"description": "Whether or not to always use the neu crafting display (instead of hypixels). Deprecated"
},
"infoType": {
"enum": [
"WIKI_URL",
""
],
"description": "The type of information in the 'info' field."
},
"info": {
"type": "array",
"description": "The information about the item.",
"items": {
"type": "string"
}
},
"crafttext": {
"type": "string",
"description": "The text display when viewing a recipe that the user doesn't have the requirements for."
}
},
"required": [
"itemid",
"displayname",
"nbttag",
"damage",
"lore",
"internalname"
]
}