minecraft-data 3.7.2 → 3.9.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 (68) hide show
  1. package/data.js +18 -18
  2. package/doc/history.md +9 -0
  3. package/minecraft-data/.github/workflows/ci.yml +1 -1
  4. package/minecraft-data/data/bedrock/1.17.0/blockCollisionShapes.json +24 -24
  5. package/minecraft-data/data/bedrock/1.17.10/blockCollisionShapes.json +24 -24
  6. package/minecraft-data/data/bedrock/1.17.40/blockCollisionShapes.json +24 -24
  7. package/minecraft-data/data/bedrock/1.18.11/blockCollisionShapes.json +24 -24
  8. package/minecraft-data/data/bedrock/1.18.30/blockCollisionShapes.json +24 -24
  9. package/minecraft-data/data/bedrock/1.19.1/biomes.json +1022 -0
  10. package/minecraft-data/data/bedrock/1.19.1/blockCollisionShapes.json +899 -0
  11. package/minecraft-data/data/bedrock/1.19.1/blockStates.json +165209 -0
  12. package/minecraft-data/data/bedrock/1.19.1/blocks.json +15769 -0
  13. package/minecraft-data/data/bedrock/1.19.1/blocksB2J.json +7234 -0
  14. package/minecraft-data/data/bedrock/1.19.1/blocksJ2B.json +21450 -0
  15. package/minecraft-data/data/bedrock/1.19.1/entities.json +1442 -0
  16. package/minecraft-data/data/bedrock/1.19.1/items.json +9831 -0
  17. package/minecraft-data/data/bedrock/1.19.1/recipes.json +17454 -0
  18. package/minecraft-data/data/bedrock/1.19.10/items.json +9837 -0
  19. package/minecraft-data/data/bedrock/1.19.10/protocol.json +56 -58
  20. package/minecraft-data/data/bedrock/1.19.10/recipes.json +17454 -0
  21. package/minecraft-data/data/dataPaths.json +18 -18
  22. package/minecraft-data/data/pc/1.10/protocol.json +3 -2
  23. package/minecraft-data/data/pc/1.10-pre1/protocol.json +3 -2
  24. package/minecraft-data/data/pc/1.11/protocol.json +3 -2
  25. package/minecraft-data/data/pc/1.12/protocol.json +3 -2
  26. package/minecraft-data/data/pc/1.12-pre4/protocol.json +3 -2
  27. package/minecraft-data/data/pc/1.12.1/protocol.json +3 -2
  28. package/minecraft-data/data/pc/1.12.2/protocol.json +3 -2
  29. package/minecraft-data/data/pc/1.13/protocol.json +419 -418
  30. package/minecraft-data/data/pc/1.13.1/protocol.json +419 -418
  31. package/minecraft-data/data/pc/1.13.2/protocol.json +419 -418
  32. package/minecraft-data/data/pc/1.13.2-pre1/protocol.json +419 -418
  33. package/minecraft-data/data/pc/1.13.2-pre2/protocol.json +419 -418
  34. package/minecraft-data/data/pc/1.14/protocol.json +419 -418
  35. package/minecraft-data/data/pc/1.14.1/protocol.json +419 -418
  36. package/minecraft-data/data/pc/1.14.3/protocol.json +419 -418
  37. package/minecraft-data/data/pc/1.14.4/protocol.json +419 -418
  38. package/minecraft-data/data/pc/1.15/protocol.json +419 -418
  39. package/minecraft-data/data/pc/1.15.1/protocol.json +419 -418
  40. package/minecraft-data/data/pc/1.15.2/protocol.json +419 -418
  41. package/minecraft-data/data/pc/1.16/protocol.json +419 -418
  42. package/minecraft-data/data/pc/1.16-rc1/protocol.json +419 -418
  43. package/minecraft-data/data/pc/1.16.1/protocol.json +419 -418
  44. package/minecraft-data/data/pc/1.16.2/protocol.json +420 -419
  45. package/minecraft-data/data/pc/1.17/protocol.json +420 -419
  46. package/minecraft-data/data/pc/1.17.1/protocol.json +420 -419
  47. package/minecraft-data/data/pc/1.18/protocol.json +420 -419
  48. package/minecraft-data/data/pc/1.18.2/protocol.json +420 -419
  49. package/minecraft-data/data/pc/1.19/protocol.json +460 -460
  50. package/minecraft-data/data/pc/1.8/protocol.json +3 -2
  51. package/minecraft-data/data/pc/1.9/protocol.json +3 -2
  52. package/minecraft-data/data/pc/1.9.1-pre2/protocol.json +3 -2
  53. package/minecraft-data/data/pc/1.9.2/protocol.json +3 -2
  54. package/minecraft-data/data/pc/1.9.4/protocol.json +3 -2
  55. package/minecraft-data/data/pc/15w40b/protocol.json +3 -2
  56. package/minecraft-data/data/pc/16w20a/protocol.json +3 -2
  57. package/minecraft-data/data/pc/16w35a/protocol.json +3 -2
  58. package/minecraft-data/data/pc/17w15a/protocol.json +3 -2
  59. package/minecraft-data/data/pc/17w18b/protocol.json +3 -2
  60. package/minecraft-data/data/pc/17w50a/protocol.json +3 -2
  61. package/minecraft-data/data/pc/20w13b/protocol.json +419 -418
  62. package/minecraft-data/data/pc/21w07a/protocol.json +420 -419
  63. package/minecraft-data/data/pc/common/features.json +36 -26
  64. package/minecraft-data/data/pc/common/protocolVersions.json +14 -0
  65. package/minecraft-data/doc/history.md +14 -0
  66. package/minecraft-data/tools/js/compileProtocol.js +34 -9
  67. package/minecraft-data/tools/js/test/protocolSync.js +8 -0
  68. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "name": "spawner",
9
9
  "description": "spawner is called spawner",
10
- "versions": ["1.13", "1.18.2"]
10
+ "versions": ["1.13", "1.19"]
11
11
  },
12
12
  {
13
13
  "name": "blockMetadata",
@@ -17,12 +17,12 @@
17
17
  {
18
18
  "name": "blockStateId",
19
19
  "description": "block metadata is encoded as state id",
20
- "versions": ["1.13", "1.18.2"]
20
+ "versions": ["1.13", "1.19"]
21
21
  },
22
22
  {
23
23
  "name": "creativeSleepNearMobs",
24
24
  "description": "can sleep near mobs in creative",
25
- "versions": ["1.13", "1.18.2"]
25
+ "versions": ["1.13", "1.19"]
26
26
  },
27
27
  {
28
28
  "name": "fixedPointPosition",
@@ -32,7 +32,7 @@
32
32
  {
33
33
  "name": "doublePosition",
34
34
  "description": "Entity positions are represented with double",
35
- "versions": ["1.9", "1.18.2"]
35
+ "versions": ["1.9", "1.19"]
36
36
  },
37
37
  {
38
38
  "name": "fixedPointDelta",
@@ -42,7 +42,7 @@
42
42
  {
43
43
  "name": "fixedPointDelta128",
44
44
  "description": "Delta of position are represented with fixed point numbers times 128",
45
- "versions": ["1.9", "1.18.2"]
45
+ "versions": ["1.9", "1.19"]
46
46
  },
47
47
  {
48
48
  "name": "customChannelMCPrefixed",
@@ -52,12 +52,12 @@
52
52
  {
53
53
  "name": "customChannelIdentifier",
54
54
  "description": "custom channel is an identifier starting in minecraft namespace",
55
- "versions": ["1.13", "1.18.2"]
55
+ "versions": ["1.13", "1.19"]
56
56
  },
57
57
  {
58
58
  "name": "dimensionDataIsAvailable",
59
59
  "description": "dimensionData is available, providing an additional information about the current dimension",
60
- "versions": ["1.17", "1.18.2"]
60
+ "versions": ["1.17", "1.19"]
61
61
  },
62
62
  {
63
63
  "name": "useItemWithBlockPlace",
@@ -67,7 +67,7 @@
67
67
  {
68
68
  "name": "useItemWithOwnPacket",
69
69
  "description": "use item is done with its own packet",
70
- "versions": ["1.9", "1.18.2"]
70
+ "versions": ["1.9", "1.19"]
71
71
  },
72
72
  {
73
73
  "name": "blockPlaceHasHeldItem",
@@ -87,7 +87,7 @@
87
87
  {
88
88
  "name": "blockPlaceHasInsideBlock",
89
89
  "description": "block_place packet has inside block",
90
- "versions": ["1.14", "1.18.2"]
90
+ "versions": ["1.14", "1.19"]
91
91
  },
92
92
  {
93
93
  "name": "teleportUsesPositionPacket",
@@ -102,7 +102,7 @@
102
102
  {
103
103
  "name": "teleportUsesOwnPacket",
104
104
  "description": "teleport is done using its own packet",
105
- "versions": ["1.9", "1.18.2"]
105
+ "versions": ["1.9", "1.19"]
106
106
  },
107
107
  {
108
108
  "name": "oneBlockForSeveralVariations",
@@ -112,7 +112,7 @@
112
112
  {
113
113
  "name": "blockSchemeIsFlat",
114
114
  "description": "all variations of a packet have their own id",
115
- "versions": ["1.13", "1.18.2"]
115
+ "versions": ["1.13", "1.19"]
116
116
  },
117
117
  {
118
118
  "name": "tabCompleteHasNoToolTip",
@@ -122,7 +122,7 @@
122
122
  {
123
123
  "name": "tabCompleteHasAToolTip",
124
124
  "description": "tab complete has a tool tip",
125
- "versions": ["1.13", "1.18.2"]
125
+ "versions": ["1.13", "1.19"]
126
126
  },
127
127
  {
128
128
  "name": "effectAreMinecraftPrefixed",
@@ -132,7 +132,7 @@
132
132
  {
133
133
  "name": "effectAreNotPrefixed",
134
134
  "description": "effect are not prefixed",
135
- "versions": ["1.13", "1.18.2"]
135
+ "versions": ["1.13", "1.19"]
136
136
  },
137
137
  {
138
138
  "name": "itemsAreAlsoBlocks",
@@ -142,12 +142,12 @@
142
142
  {
143
143
  "name": "itemsAreNotBlocks",
144
144
  "description": "items are not block",
145
- "versions": ["1.13", "1.18.2"]
145
+ "versions": ["1.13", "1.19"]
146
146
  },
147
147
  {
148
148
  "name": "fishingBobberCorrectlyNamed",
149
149
  "description": "the fishing hook entity is named fishing_bobber",
150
- "versions": ["1.14", "1.18.2"]
150
+ "versions": ["1.14", "1.19"]
151
151
  },
152
152
  {
153
153
  "name": "editBookIsPluginChannel",
@@ -157,7 +157,7 @@
157
157
  {
158
158
  "name": "hasEditBookPacket",
159
159
  "description": "book editing is handled through a packet",
160
- "versions": ["1.13", "1.18.2"]
160
+ "versions": ["1.13", "1.19"]
161
161
  },
162
162
  {
163
163
  "name": "clientUpdateBookIdWhenSign",
@@ -202,7 +202,7 @@
202
202
  {
203
203
  "name": "dimensionDataIsAvailable",
204
204
  "description": "dimensionData is available, describing additional dimension information",
205
- "versions": ["1.17", "1.18.2"]
205
+ "versions": ["1.17", "1.19"]
206
206
  },
207
207
  {
208
208
  "name": "doesntHaveChestType",
@@ -227,7 +227,7 @@
227
227
  {
228
228
  "name": "hasAttackCooldown",
229
229
  "description": "if there is a cooldown after attacks to deal full damage",
230
- "versions": ["1.9", "1.18.2"]
230
+ "versions": ["1.9", "1.19"]
231
231
  },
232
232
  {
233
233
  "name": "usesLoginPacket",
@@ -237,12 +237,12 @@
237
237
  {
238
238
  "name": "usesMultiblockSingleLong",
239
239
  "description": "in the multi_block_change packet is stored as a single number",
240
- "versions": ["1.16.2", "1.18.2"]
240
+ "versions": ["1.16.2", "1.19"]
241
241
  },
242
242
  {
243
243
  "name": "usesMultiblock3DChunkCoords",
244
244
  "description": "in the multi_block_change packet, all 3 axis coords are defined",
245
- "versions": ["1.16.2", "1.18.2"]
245
+ "versions": ["1.16.2", "1.19"]
246
246
  },
247
247
  {
248
248
  "name": "setBlockUsesMetadataNumber",
@@ -257,7 +257,7 @@
257
257
  {
258
258
  "name": "selectingTradeMovesItems",
259
259
  "description": "selecting a trade automatically puts the required items into trading slots",
260
- "versions": ["1.14", "1.18.2"]
260
+ "versions": ["1.14", "1.19"]
261
261
  },
262
262
  {
263
263
  "name": "resourcePackUsesHash",
@@ -272,7 +272,7 @@
272
272
  {
273
273
  "name": "teamUsesChatComponents",
274
274
  "description": "teams use chatcomponents for formatting",
275
- "versions": ["1.13", "1.18.2"]
275
+ "versions": ["1.13", "1.19"]
276
276
  },
277
277
  {
278
278
  "name": "teamUsesScoreboard",
@@ -287,7 +287,7 @@
287
287
  {
288
288
  "name": "enderCrystalNameNoCapsWithUnderscore",
289
289
  "description": "this is when the end_crystal's entity name is end_crystal",
290
- "versions": ["1.14", "1.18.2"]
290
+ "versions": ["1.14", "1.19"]
291
291
  },
292
292
  {
293
293
  "name": "entityNameUpperCaseNoUnderscore",
@@ -307,7 +307,7 @@
307
307
  {
308
308
  "name": "stateIdUsed",
309
309
  "description": "starting in 1.17.1, actionId has been replaced with stateId",
310
- "versions": ["1.17.1", "1.18.2"]
310
+ "versions": ["1.17.1", "1.19"]
311
311
  },
312
312
  {
313
313
  "name": "actionIdUsed",
@@ -317,7 +317,7 @@
317
317
  {
318
318
  "name": "setSlotAsTransaction",
319
319
  "description": "use setslot as transaction instead of just hoping it'll work",
320
- "versions": ["1.17", "1.18.2"]
320
+ "versions": ["1.17", "1.19"]
321
321
  },
322
322
  {
323
323
  "name": "armAnimationBeforeUse",
@@ -327,7 +327,7 @@
327
327
  {
328
328
  "name": "tallWorld",
329
329
  "description": "world y defaults to starts at -64 and ends at 384",
330
- "versions": ["1.18", "1.18.2"]
330
+ "versions": ["1.18", "1.19"]
331
331
  },
332
332
  {
333
333
  "name": "sendStringifiedSignText",
@@ -436,5 +436,15 @@
436
436
  "name": "spawnEggsHaveSpawnedEntityInName",
437
437
  "description": "in newer versions, spawn eggs have the entity they spawn in their name, ex: 'squid_spawn_egg'",
438
438
  "versions": ["1.13_major", "latest"]
439
+ },
440
+ {
441
+ "name": "signedChat",
442
+ "description": "starting in 1.19 chat messages generally carry a cryptographic signature, `packet_chat` has been replaced clientbound by `packet_player_chat` and `packet_system_chat` and serverbound by `packet_chat_message`",
443
+ "versions": ["1.19_major", "latest"]
444
+ },
445
+ {
446
+ "name": "signatureEncryption",
447
+ "description": "allows for usage of `signature` instead of verifyToken in serverbound packet_encryption_begin",
448
+ "versions": ["1.19_major", "latest"]
439
449
  }
440
450
  ]
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "1.19.1-rc2",
4
+ "version": 1073741924,
5
+ "dataVersion": 3115,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.19"
8
+ },
9
+ {
10
+ "minecraftVersion": "1.19.1-pre6",
11
+ "version": 1073741923,
12
+ "dataVersion": 3114,
13
+ "usesNetty": true,
14
+ "majorVersion": "1.19"
15
+ },
2
16
  {
3
17
  "minecraftVersion": "1.19.1-pre5",
4
18
  "version": 1073741922,
@@ -1,3 +1,17 @@
1
+ ## 3.9.0
2
+ * bedrock: Add bedrock 1.19 data (#600)
3
+ * bedrock: protocol corrections
4
+ * pc: Add 1.19.1-rc2 to protocol versions
5
+
6
+ ## 3.8.0
7
+
8
+ * [1.19] update features and add some @rob9315
9
+ * replace varint with custom native varlong @rob9315
10
+
11
+ ## 3.7.3
12
+
13
+ * Move array back to declare_commands @rob9315
14
+
1
15
  ## 3.7.2
2
16
 
3
17
  * Fix packet declare command @rob9315
@@ -52,20 +52,45 @@ function convert (ver, path) {
52
52
  return version
53
53
  }
54
54
 
55
+ function validate (ver, path) {
56
+ process.chdir(path || join(__dirname, '../../data/bedrock/' + ver))
57
+ console.log(process.cwd())
58
+ const version = genProtoSchema()
59
+
60
+ const expected = JSON.stringify({ types: getJSON('./proto.json') })
61
+ // If you crash here, no protocol.json was generated - run `npm run build`
62
+ const actual = JSON.stringify(getJSON(`../${version}/protocol.json`))
63
+
64
+ fs.unlinkSync('./proto.json') // remove temp file
65
+ fs.unlinkSync('./packet_map.yml') // remove temp file
66
+
67
+ // Make sure the protocol_expected.json file equals the protocol.json file; otherwise the JSON must be rebuilt
68
+ if (expected !== actual) {
69
+ throw Error(`${ver} (${version}) / protocol.json is desynced from yaml, please run 'npm run build'`)
70
+ }
71
+
72
+ console.log('ok', `../${version}/protocol.json`)
73
+ return version
74
+ }
75
+
76
+ function all (fn) {
77
+ const versions = require('../../data/dataPaths.json').bedrock
78
+ for (const versionId in versions) {
79
+ console.log('⏳', fn.name, 'protocol for bedrock', versionId)
80
+ const ver = versions[versionId]
81
+ if (ver.proto) {
82
+ fn(ver.proto.includes('latest') ? 'latest' : versionId)
83
+ }
84
+ }
85
+ }
86
+
55
87
  // If no argument, build everything
56
88
  if (!module.parent) {
57
89
  if (!process.argv[2]) {
58
- const versions = require('../../data/dataPaths.json').bedrock
59
- for (const versionId in versions) {
60
- console.log('Compiling bedrock protocol', versionId)
61
- const ver = versions[versionId]
62
- if (ver.proto) {
63
- convert(ver.proto.includes('latest') ? 'latest' : versionId)
64
- }
65
- }
90
+ all(convert)
66
91
  } else { // build the specified version
67
92
  convert(process.argv[2])
68
93
  }
69
94
  }
70
95
 
71
- module.exports = { convert }
96
+ module.exports = { convert, validate, all }
@@ -0,0 +1,8 @@
1
+ /* eslint-env mocha */
2
+ const protocolTools = require('../compileProtocol')
3
+
4
+ describe('protocol yaml', () => {
5
+ it('should be valid and in sync with json', () => {
6
+ protocolTools.all(protocolTools.validate)
7
+ })
8
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.7.2",
3
+ "version": "3.9.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",