minecraft-data 3.97.0 → 3.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/data.js +27 -0
  2. package/doc/history.md +4 -0
  3. package/index.d.ts +72 -63
  4. package/minecraft-data/.github/helper-bot/handleMcpcGeneratedArtifacts.js +109 -0
  5. package/minecraft-data/.github/helper-bot/index.js +77 -34
  6. package/minecraft-data/.github/helper-bot/package.json +11 -0
  7. package/minecraft-data/.github/workflows/handle-mcpc-generator.yml +36 -0
  8. package/minecraft-data/.github/workflows/update-helper.yml +3 -2
  9. package/minecraft-data/README.md +1 -1
  10. package/minecraft-data/data/bedrock/1.21.100/protocol.json +2 -2
  11. package/minecraft-data/data/dataPaths.json +28 -1
  12. package/minecraft-data/data/pc/1.21.6/proto.yml +3494 -0
  13. package/minecraft-data/data/pc/1.21.8/attributes.json +247 -0
  14. package/minecraft-data/data/pc/1.21.8/biomes.json +652 -0
  15. package/minecraft-data/data/pc/1.21.8/blockCollisionShapes.json +142541 -0
  16. package/minecraft-data/data/pc/1.21.8/blocks.json +41358 -0
  17. package/minecraft-data/data/pc/1.21.8/effects.json +236 -0
  18. package/minecraft-data/data/pc/1.21.8/enchantments.json +959 -0
  19. package/minecraft-data/data/pc/1.21.8/entities.json +4176 -0
  20. package/minecraft-data/data/pc/1.21.8/foods.json +402 -0
  21. package/minecraft-data/data/pc/1.21.8/instruments.json +94 -0
  22. package/minecraft-data/data/pc/1.21.8/items.json +9284 -0
  23. package/minecraft-data/data/pc/1.21.8/language.json +7394 -0
  24. package/minecraft-data/data/pc/1.21.8/materials.json +206 -0
  25. package/minecraft-data/data/pc/1.21.8/particles.json +458 -0
  26. package/minecraft-data/data/pc/1.21.8/protocol.json +10249 -0
  27. package/minecraft-data/data/pc/1.21.8/recipes.json +30473 -0
  28. package/minecraft-data/data/pc/1.21.8/sounds.json +6914 -0
  29. package/minecraft-data/data/pc/1.21.8/tints.json +465 -0
  30. package/minecraft-data/data/pc/1.21.8/version.json +6 -0
  31. package/minecraft-data/data/pc/common/protocolVersions.json +40 -0
  32. package/minecraft-data/data/pc/common/versions.json +6 -2
  33. package/minecraft-data/data/pc/latest/proto.yml +1 -1
  34. package/minecraft-data/doc/history.md +16 -0
  35. package/minecraft-data/schemas/blockMappings_schema.json +24 -34
  36. package/minecraft-data/schemas/commands_schema.json +13 -7
  37. package/minecraft-data/schemas/tints_schema.json +37 -128
  38. package/minecraft-data/tools/js/extractPcEntityMetadata.js +160 -102
  39. package/minecraft-data/tools/js/test/audit_versions.js +48 -0
  40. package/minecraft-data/tools/js/test/test.js +6 -0
  41. package/package.json +1 -1
@@ -0,0 +1,465 @@
1
+ {
2
+ "grass": {
3
+ "data": [
4
+ {
5
+ "keys": [
6
+ "badlands",
7
+ "eroded_badlands",
8
+ "wooded_badlands"
9
+ ],
10
+ "color": 9470285
11
+ },
12
+ {
13
+ "keys": [
14
+ "bamboo_jungle",
15
+ "basalt_deltas",
16
+ "beach",
17
+ "birch_forest",
18
+ "cold_ocean",
19
+ "crimson_forest",
20
+ "deep_cold_ocean",
21
+ "deep_dark",
22
+ "deep_frozen_ocean",
23
+ "deep_lukewarm_ocean",
24
+ "deep_ocean",
25
+ "desert",
26
+ "dripstone_caves",
27
+ "end_barrens",
28
+ "end_highlands",
29
+ "end_midlands",
30
+ "flower_forest",
31
+ "forest",
32
+ "frozen_ocean",
33
+ "frozen_peaks",
34
+ "frozen_river",
35
+ "grove",
36
+ "ice_spikes",
37
+ "jagged_peaks",
38
+ "jungle",
39
+ "lukewarm_ocean",
40
+ "lush_caves",
41
+ "meadow",
42
+ "mushroom_fields",
43
+ "nether_wastes",
44
+ "ocean",
45
+ "old_growth_birch_forest",
46
+ "old_growth_pine_taiga",
47
+ "old_growth_spruce_taiga",
48
+ "plains",
49
+ "river",
50
+ "savanna",
51
+ "savanna_plateau",
52
+ "small_end_islands",
53
+ "snowy_beach",
54
+ "snowy_plains",
55
+ "snowy_slopes",
56
+ "snowy_taiga",
57
+ "soul_sand_valley",
58
+ "sparse_jungle",
59
+ "stony_peaks",
60
+ "stony_shore",
61
+ "sunflower_plains",
62
+ "taiga",
63
+ "the_end",
64
+ "the_void",
65
+ "warm_ocean",
66
+ "warped_forest",
67
+ "windswept_forest",
68
+ "windswept_gravelly_hills",
69
+ "windswept_hills",
70
+ "windswept_savanna"
71
+ ],
72
+ "color": 0
73
+ },
74
+ {
75
+ "keys": [
76
+ "cherry_grove"
77
+ ],
78
+ "color": 11983713
79
+ },
80
+ {
81
+ "keys": [
82
+ "dark_forest"
83
+ ],
84
+ "color": 1317381
85
+ },
86
+ {
87
+ "keys": [
88
+ "mangrove_swamp",
89
+ "swamp"
90
+ ],
91
+ "color": 6975545
92
+ },
93
+ {
94
+ "keys": [
95
+ "pale_garden"
96
+ ],
97
+ "color": 7832178
98
+ }
99
+ ]
100
+ },
101
+ "foliage": {
102
+ "data": [
103
+ {
104
+ "keys": [
105
+ "badlands",
106
+ "eroded_badlands",
107
+ "wooded_badlands"
108
+ ],
109
+ "color": 10387789
110
+ },
111
+ {
112
+ "keys": [
113
+ "bamboo_jungle",
114
+ "basalt_deltas",
115
+ "beach",
116
+ "birch_forest",
117
+ "cold_ocean",
118
+ "crimson_forest",
119
+ "dark_forest",
120
+ "deep_cold_ocean",
121
+ "deep_dark",
122
+ "deep_frozen_ocean",
123
+ "deep_lukewarm_ocean",
124
+ "deep_ocean",
125
+ "desert",
126
+ "dripstone_caves",
127
+ "end_barrens",
128
+ "end_highlands",
129
+ "end_midlands",
130
+ "flower_forest",
131
+ "forest",
132
+ "frozen_ocean",
133
+ "frozen_peaks",
134
+ "frozen_river",
135
+ "grove",
136
+ "ice_spikes",
137
+ "jagged_peaks",
138
+ "jungle",
139
+ "lukewarm_ocean",
140
+ "lush_caves",
141
+ "meadow",
142
+ "mushroom_fields",
143
+ "nether_wastes",
144
+ "ocean",
145
+ "old_growth_birch_forest",
146
+ "old_growth_pine_taiga",
147
+ "old_growth_spruce_taiga",
148
+ "plains",
149
+ "river",
150
+ "savanna",
151
+ "savanna_plateau",
152
+ "small_end_islands",
153
+ "snowy_beach",
154
+ "snowy_plains",
155
+ "snowy_slopes",
156
+ "snowy_taiga",
157
+ "soul_sand_valley",
158
+ "sparse_jungle",
159
+ "stony_peaks",
160
+ "stony_shore",
161
+ "sunflower_plains",
162
+ "taiga",
163
+ "the_end",
164
+ "the_void",
165
+ "warm_ocean",
166
+ "warped_forest",
167
+ "windswept_forest",
168
+ "windswept_gravelly_hills",
169
+ "windswept_hills",
170
+ "windswept_savanna"
171
+ ],
172
+ "color": 0
173
+ },
174
+ {
175
+ "keys": [
176
+ "cherry_grove"
177
+ ],
178
+ "color": 11983713
179
+ },
180
+ {
181
+ "keys": [
182
+ "mangrove_swamp"
183
+ ],
184
+ "color": 9285927
185
+ },
186
+ {
187
+ "keys": [
188
+ "pale_garden"
189
+ ],
190
+ "color": 8883574
191
+ },
192
+ {
193
+ "keys": [
194
+ "swamp"
195
+ ],
196
+ "color": 6975545
197
+ }
198
+ ]
199
+ },
200
+ "water": {
201
+ "data": [
202
+ {
203
+ "keys": [
204
+ "badlands",
205
+ "bamboo_jungle",
206
+ "basalt_deltas",
207
+ "beach",
208
+ "birch_forest",
209
+ "crimson_forest",
210
+ "dark_forest",
211
+ "deep_dark",
212
+ "deep_ocean",
213
+ "desert",
214
+ "dripstone_caves",
215
+ "end_barrens",
216
+ "end_highlands",
217
+ "end_midlands",
218
+ "eroded_badlands",
219
+ "flower_forest",
220
+ "forest",
221
+ "frozen_peaks",
222
+ "grove",
223
+ "ice_spikes",
224
+ "jagged_peaks",
225
+ "jungle",
226
+ "lush_caves",
227
+ "mushroom_fields",
228
+ "nether_wastes",
229
+ "ocean",
230
+ "old_growth_birch_forest",
231
+ "old_growth_pine_taiga",
232
+ "old_growth_spruce_taiga",
233
+ "plains",
234
+ "river",
235
+ "savanna",
236
+ "savanna_plateau",
237
+ "small_end_islands",
238
+ "snowy_plains",
239
+ "snowy_slopes",
240
+ "soul_sand_valley",
241
+ "sparse_jungle",
242
+ "stony_peaks",
243
+ "stony_shore",
244
+ "sunflower_plains",
245
+ "taiga",
246
+ "the_end",
247
+ "the_void",
248
+ "warped_forest",
249
+ "windswept_forest",
250
+ "windswept_gravelly_hills",
251
+ "windswept_hills",
252
+ "windswept_savanna",
253
+ "wooded_badlands"
254
+ ],
255
+ "color": 4159204
256
+ },
257
+ {
258
+ "keys": [
259
+ "cherry_grove"
260
+ ],
261
+ "color": 6141935
262
+ },
263
+ {
264
+ "keys": [
265
+ "cold_ocean",
266
+ "deep_cold_ocean",
267
+ "snowy_beach",
268
+ "snowy_taiga"
269
+ ],
270
+ "color": 4020182
271
+ },
272
+ {
273
+ "keys": [
274
+ "deep_frozen_ocean",
275
+ "frozen_ocean",
276
+ "frozen_river"
277
+ ],
278
+ "color": 3750089
279
+ },
280
+ {
281
+ "keys": [
282
+ "deep_lukewarm_ocean",
283
+ "lukewarm_ocean"
284
+ ],
285
+ "color": 4566514
286
+ },
287
+ {
288
+ "keys": [
289
+ "mangrove_swamp"
290
+ ],
291
+ "color": 3832426
292
+ },
293
+ {
294
+ "keys": [
295
+ "meadow"
296
+ ],
297
+ "color": 937679
298
+ },
299
+ {
300
+ "keys": [
301
+ "pale_garden"
302
+ ],
303
+ "color": 7768221
304
+ },
305
+ {
306
+ "keys": [
307
+ "swamp"
308
+ ],
309
+ "color": 6388580
310
+ },
311
+ {
312
+ "keys": [
313
+ "warm_ocean"
314
+ ],
315
+ "color": 4445678
316
+ }
317
+ ]
318
+ },
319
+ "redstone": {
320
+ "data": [
321
+ {
322
+ "keys": [
323
+ 0
324
+ ],
325
+ "color": 4980736
326
+ },
327
+ {
328
+ "keys": [
329
+ 1
330
+ ],
331
+ "color": 7340032
332
+ },
333
+ {
334
+ "keys": [
335
+ 2
336
+ ],
337
+ "color": 7995392
338
+ },
339
+ {
340
+ "keys": [
341
+ 3
342
+ ],
343
+ "color": 8650752
344
+ },
345
+ {
346
+ "keys": [
347
+ 4
348
+ ],
349
+ "color": 9306112
350
+ },
351
+ {
352
+ "keys": [
353
+ 5
354
+ ],
355
+ "color": 10027008
356
+ },
357
+ {
358
+ "keys": [
359
+ 6
360
+ ],
361
+ "color": 10682368
362
+ },
363
+ {
364
+ "keys": [
365
+ 7
366
+ ],
367
+ "color": 11337728
368
+ },
369
+ {
370
+ "keys": [
371
+ 8
372
+ ],
373
+ "color": 11993088
374
+ },
375
+ {
376
+ "keys": [
377
+ 9
378
+ ],
379
+ "color": 12648448
380
+ },
381
+ {
382
+ "keys": [
383
+ 10
384
+ ],
385
+ "color": 13369344
386
+ },
387
+ {
388
+ "keys": [
389
+ 11
390
+ ],
391
+ "color": 14024704
392
+ },
393
+ {
394
+ "keys": [
395
+ 12
396
+ ],
397
+ "color": 14680064
398
+ },
399
+ {
400
+ "keys": [
401
+ 13
402
+ ],
403
+ "color": 15336960
404
+ },
405
+ {
406
+ "keys": [
407
+ 14
408
+ ],
409
+ "color": 15997696
410
+ },
411
+ {
412
+ "keys": [
413
+ 15
414
+ ],
415
+ "color": 16724480
416
+ }
417
+ ]
418
+ },
419
+ "constant": {
420
+ "data": [
421
+ {
422
+ "keys": [
423
+ "birch_leaves"
424
+ ],
425
+ "color": -8345771
426
+ },
427
+ {
428
+ "keys": [
429
+ "spruce_leaves"
430
+ ],
431
+ "color": -10380959
432
+ },
433
+ {
434
+ "keys": [
435
+ "lily_pad"
436
+ ],
437
+ "color": -14647248
438
+ },
439
+ {
440
+ "keys": [
441
+ "attached_melon_stem"
442
+ ],
443
+ "color": -2046180
444
+ },
445
+ {
446
+ "keys": [
447
+ "attached_pumpkin_stem"
448
+ ],
449
+ "color": -2046180
450
+ },
451
+ {
452
+ "keys": [
453
+ "melon_stem"
454
+ ],
455
+ "color": -16711936
456
+ },
457
+ {
458
+ "keys": [
459
+ "pumpkin_stem"
460
+ ],
461
+ "color": -16711936
462
+ }
463
+ ]
464
+ }
465
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 772,
3
+ "minecraftVersion": "1.21.8",
4
+ "majorVersion": "1.21",
5
+ "releaseType": "release"
6
+ }
@@ -1,4 +1,44 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "25w36b",
4
+ "version": 1073742091,
5
+ "dataVersion": 4546,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.21",
8
+ "releaseType": "snapshot"
9
+ },
10
+ {
11
+ "minecraftVersion": "25w36a",
12
+ "version": 1073742090,
13
+ "dataVersion": 4545,
14
+ "usesNetty": true,
15
+ "majorVersion": "1.21",
16
+ "releaseType": "snapshot"
17
+ },
18
+ {
19
+ "minecraftVersion": "25w35a",
20
+ "version": 1073742089,
21
+ "dataVersion": 4542,
22
+ "usesNetty": true,
23
+ "majorVersion": "1.21",
24
+ "releaseType": "snapshot"
25
+ },
26
+ {
27
+ "minecraftVersion": "25w34b",
28
+ "version": 1073742088,
29
+ "dataVersion": 4540,
30
+ "usesNetty": true,
31
+ "majorVersion": "1.21",
32
+ "releaseType": "snapshot"
33
+ },
34
+ {
35
+ "minecraftVersion": "25w34a",
36
+ "version": 1073742087,
37
+ "dataVersion": 4539,
38
+ "usesNetty": true,
39
+ "majorVersion": "1.21",
40
+ "releaseType": "snapshot"
41
+ },
2
42
  {
3
43
  "minecraftVersion": "25w33a",
4
44
  "version": 1073742086,
@@ -42,6 +42,7 @@
42
42
  "1.16.2",
43
43
  "1.16.3",
44
44
  "1.16.4",
45
+ "1.16.5",
45
46
  "21w07a",
46
47
  "1.17",
47
48
  "1.17.1",
@@ -59,8 +60,11 @@
59
60
  "1.20.4",
60
61
  "1.20.5",
61
62
  "1.20.6",
63
+ "1.21",
62
64
  "1.21.1",
63
65
  "1.21.3",
64
66
  "1.21.4",
65
- "1.21.5"
66
- ]
67
+ "1.21.5",
68
+ "1.21.6",
69
+ "1.21.8"
70
+ ]
@@ -1,4 +1,4 @@
1
- !version: 1.21.6
1
+ !version: 1.21.8
2
2
  !StartDocs: true
3
3
 
4
4
  ^types:
@@ -1,3 +1,19 @@
1
+ ## 3.98.0
2
+ * [🎈 Pc1.21.8 (#1070)](https://github.com/PrismarineJS/minecraft-data/commit/7bfe410e80c5332074de6726dec8df6ad8c80ae1) (thanks @extremeheat)
3
+ * [Add 25w36b to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/fdd13b6a4bd46a7a9de1c5de8a7cb7abf715960f) (thanks @github-actions[bot])
4
+ * [Add 25w36a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/4358ffe27a81ad4f7aa54f62b30217d54165d3ad) (thanks @github-actions[bot])
5
+ * [Fix update workflow](https://github.com/PrismarineJS/minecraft-data/commit/752a52d70ae2ad18bfdf01d8d7eac289f12807fa) (thanks @extremeheat)
6
+ * [Fix handle-mcpc-generator.yml (#1071)](https://github.com/PrismarineJS/minecraft-data/commit/063c333d8e60fe012a6734126479fce4a3324e35) (thanks @extremeheat)
7
+ * [Add pc 1.21.7 data (#1069)](https://github.com/PrismarineJS/minecraft-data/commit/1d6d9d408bf567e9a6f3fadd2aa079a50d8097d0) (thanks @Maks-gaming)
8
+ * [Add 25w35a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/549e5a83ea72193eaa6eac8462e01957af6f832f) (thanks @github-actions[bot])
9
+ * [Fix & cleanup the tints schema (#1056)](https://github.com/PrismarineJS/minecraft-data/commit/78d6e14a467fa719cb922e5bdc49275df4785860) (thanks @ItsDrike)
10
+ * [Handle dispatch from PrismarineJS/minecraft-data-generator (#1063)](https://github.com/PrismarineJS/minecraft-data/commit/c903b774986cd025950df3a9240d8fade1885070) (thanks @extremeheat)
11
+ * [Fix commands schema & enforce no additional properties (#1066)](https://github.com/PrismarineJS/minecraft-data/commit/5c47e32b57981d30cf9c5c15ac75633253680ea9) (thanks @ItsDrike)
12
+ * [Disallow additional properties in blockMappings schema (#1067)](https://github.com/PrismarineJS/minecraft-data/commit/de073027b68530fc0dd6de2ec921386a839145f7) (thanks @ItsDrike)
13
+ * [Ensure consistency between versions.json and dataPaths.json (#1068)](https://github.com/PrismarineJS/minecraft-data/commit/3075b6e8ad0778dfe134122ad65cb2f8f69632f3) (thanks @ItsDrike)
14
+ * [Add 25w34b to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/46e60659d98b922f503c6b8f986564d5d38985ea) (thanks @github-actions[bot])
15
+ * [Add 25w34a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/0e3d40eb9a8c03c46b16fea594a30d4daa8a98a1) (thanks @github-actions[bot])
16
+
1
17
  ## 3.97.0
2
18
  * [Revert "Fix pc "nbtNameForEnchant" feature versions (#986)"](https://github.com/PrismarineJS/minecraft-data/commit/34a88b5f770eb9f2b3d6a4ae8a5ec6a71b235327) (thanks @rom1504)
3
19
 
@@ -1,44 +1,34 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "blockMappings",
4
+ "description": "Maps block names and states between PC and PE (Bedrock) versions.",
2
5
  "type": "array",
3
- "items": [
4
- {
6
+ "items": {
7
+ "type": "object",
8
+ "description": "A mapping between a PC and PE block.",
9
+ "properties": {
10
+ "pc": { "$ref": "#/$defs/blockRef", "description": "PC (Java Edition) block reference." },
11
+ "pe": { "$ref": "#/$defs/blockRef", "description": "PE (Bedrock Edition) block reference." }
12
+ },
13
+ "required": ["pc", "pe"],
14
+ "additionalProperties": false
15
+ },
16
+ "$defs": {
17
+ "blockRef": {
5
18
  "type": "object",
19
+ "description": "A reference to a block, including its name and states.",
6
20
  "properties": {
7
- "pc": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "states": {
14
- "type": "object"
15
- }
16
- },
17
- "required": [
18
- "name",
19
- "states"
20
- ]
21
+ "name": {
22
+ "type": "string",
23
+ "description": "The block's unique name identifier."
21
24
  },
22
- "pe": {
25
+ "states": {
23
26
  "type": "object",
24
- "properties": {
25
- "name": {
26
- "type": "string"
27
- },
28
- "states": {
29
- "type": "object"
30
- }
31
- },
32
- "required": [
33
- "name",
34
- "states"
35
- ]
27
+ "description": "The block's state properties as key-value pairs."
36
28
  }
37
29
  },
38
- "required": [
39
- "pc",
40
- "pe"
41
- ]
30
+ "required": ["name", "states"],
31
+ "additionalProperties": false
42
32
  }
43
- ]
33
+ }
44
34
  }
@@ -26,7 +26,8 @@
26
26
  }
27
27
  }
28
28
  },
29
- "required": ["type","name", "executable","redirects","children"]
29
+ "required": ["type","name", "executable","redirects","children"],
30
+ "additionalProperties": false
30
31
  },
31
32
 
32
33
  "LiteralNode" : {
@@ -51,7 +52,8 @@
51
52
  }
52
53
  }
53
54
  },
54
- "required": ["type","name", "executable","redirects","children"]
55
+ "required": ["type","name", "executable","redirects","children"],
56
+ "additionalProperties": false
55
57
  },
56
58
 
57
59
  "ArgumentNode" : {
@@ -85,10 +87,12 @@
85
87
  "modifier" : {
86
88
  "type" : ["object","null"]
87
89
  }
88
- }
90
+ },
91
+ "additionalProperties": false
89
92
  }
90
93
  },
91
- "required": ["type","name", "executable","redirects","children"]
94
+ "required": ["type","name", "executable","redirects","children"],
95
+ "additionalProperties": false
92
96
  },
93
97
 
94
98
  "ParserInfo" : {
@@ -109,7 +113,8 @@
109
113
  }
110
114
  },
111
115
 
112
- "required": ["parser","modifier","examples"]
116
+ "required": ["parser","modifier","examples"],
117
+ "additionalProperties": false
113
118
  }
114
119
 
115
120
 
@@ -118,7 +123,7 @@
118
123
 
119
124
  "type" : "object",
120
125
  "properties": {
121
- "graph" : {
126
+ "root" : {
122
127
  "$ref": "#/definitions/RootNode"
123
128
  },
124
129
  "parsers" : {
@@ -128,7 +133,8 @@
128
133
  }
129
134
  }
130
135
  },
131
- "required": ["root","parsers"]
136
+ "required": ["root","parsers"],
137
+ "additionalProperties": false
132
138
 
133
139
 
134
140
  }