minecraft-data 3.68.0 → 3.70.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 (31) hide show
  1. package/data.js +54 -5
  2. package/doc/history.md +8 -0
  3. package/index.d.ts +17 -2
  4. package/minecraft-data/README.md +10 -1
  5. package/minecraft-data/data/bedrock/1.21.2/protocol.json +13 -0
  6. package/minecraft-data/data/bedrock/1.21.20/proto.yml +4263 -0
  7. package/minecraft-data/data/bedrock/1.21.20/protocol.json +100 -8
  8. package/minecraft-data/data/bedrock/1.21.20/types.yml +2406 -0
  9. package/minecraft-data/data/bedrock/1.21.30/protocol.json +12689 -0
  10. package/minecraft-data/data/bedrock/1.21.30/version.json +6 -0
  11. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  12. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  13. package/minecraft-data/data/bedrock/latest/proto.yml +83 -11
  14. package/minecraft-data/data/bedrock/latest/types.yml +16 -14
  15. package/minecraft-data/data/dataPaths.json +55 -6
  16. package/minecraft-data/data/pc/1.20.3/proto.yml +2762 -0
  17. package/minecraft-data/data/pc/1.20.5/enchantments.json +42 -42
  18. package/minecraft-data/data/pc/1.20.5/items.json +0 -248
  19. package/minecraft-data/data/pc/1.20.5/loginPacket.json +8264 -0
  20. package/minecraft-data/data/pc/1.20.5/protocol.json +8898 -0
  21. package/minecraft-data/data/pc/1.20.5/recipes.json +15144 -0
  22. package/minecraft-data/data/pc/1.20.5/version.json +6 -0
  23. package/minecraft-data/data/pc/common/features.json +25 -0
  24. package/minecraft-data/data/pc/common/protocolVersions.json +80 -0
  25. package/minecraft-data/data/pc/common/versions.json +3 -2
  26. package/minecraft-data/data/pc/latest/proto.yml +1274 -598
  27. package/minecraft-data/doc/history.md +15 -0
  28. package/minecraft-data/tools/js/test/audit_recipes.js +4 -1
  29. package/package.json +2 -2
  30. package/typings/index-template.d.ts +2 -2
  31. package/typings/test-typings.ts +1 -0
@@ -1,3 +1,18 @@
1
+ ## 3.70.0
2
+ * [Pc1.20.5 protocol (#898)](https://github.com/PrismarineJS/minecraft-data/commit/a240b84d2690f1c05d2a64a8bf1b152b3682ded5) (thanks @extremeheat)
3
+ * [Add 1.21.2-pre3 to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/34bba2ce95af635a5d5e79359009fa779c135d42) (thanks @github-actions[bot])
4
+ * [Add 1.21.2-pre2 to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/14bde312bffedda58b6cd59a868be9039bd7143e) (thanks @github-actions[bot])
5
+ * [Add 1.21.2-pre1 to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/61c6b9ac56dd00f2881b1960455c8208df2169db) (thanks @github-actions[bot])
6
+ * [Add 24w40a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/c356b8cf02c71f9583ef0173e9281d83238d62bb) (thanks @github-actions[bot])
7
+ * [Add 24w39a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/9c8c31f2cee73500130e14e398a4b6ac6d5f22b8) (thanks @github-actions[bot])
8
+
9
+ ## 3.69.0
10
+ * [1.21.30 support (#911)](https://github.com/PrismarineJS/minecraft-data/commit/b8282714565b2405ac946d72840239f88f9edb28) (thanks @pokecosimo)
11
+ * [[bedrock] Add missing 1.21.20 packets (#908)](https://github.com/PrismarineJS/minecraft-data/commit/aa82dcc0cd5afe0a8feebf8ac626c0836b98b929) (thanks @MrDiamond64)
12
+
13
+ ## 3.68.1
14
+ * [Fix dataPaths.json for bedrock 1.21.2](https://github.com/PrismarineJS/minecraft-data/commit/d196f9208db6844e584d17f00d80379ab81eada0) (thanks @extremeheat)
15
+
1
16
  ## 3.68.0
2
17
  * [Add bedrock 1.21.20 protocol data (#902)](https://github.com/PrismarineJS/minecraft-data/commit/854446ec2b05cab0d252469e4d94c43492019f3e) (thanks @extremeheat)
3
18
  * [Implement protodef-yaml for mcpc (#886)](https://github.com/PrismarineJS/minecraft-data/commit/a748994fe231c356ffece37c533bcda5816b3d7a) (thanks @extremeheat)
@@ -126,7 +126,10 @@ require('./version_iterator')(function (p, versionString) {
126
126
  if (!oakPlanks) return // Bail if version doesn't have seperately defined planks, this prevents the test failing on versions that use metadata
127
127
  const recipe = recipes[craftingTable.id]
128
128
  if (!recipe[0]) return
129
- assert.notEqual(recipe.length, 1) // Check that crafting table has multiple recipes.
129
+ // remove the if after fixing https://github.com/PrismarineJS/minecraft-data/issues/917
130
+ if (versionString !== 'pc 1.20.5') {
131
+ assert.notEqual(recipe.length, 1) // Check that crafting table has multiple recipes.
132
+ }
130
133
  }
131
134
  })
132
135
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.68.0",
3
+ "version": "3.70.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -39,7 +39,7 @@
39
39
  "minecraft-packets": "^1.4.0",
40
40
  "mocha": "^10.0.0",
41
41
  "standard": "^17.0.0",
42
- "typescript": "~5.5.3"
42
+ "typescript": "~5.6.3"
43
43
  },
44
44
  "dependencies": {}
45
45
  }
@@ -98,9 +98,9 @@ export interface LoginPacket {
98
98
  isFlat?: boolean
99
99
  }
100
100
 
101
- type RequireOnly<T, K extends keyof T> = Partial<T> & Required<Pick<T, K>>
101
+ type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>
102
102
 
103
- type IndexedBlock = RequireOnly<Block, 'minStateId' | 'maxStateId' | 'defaultState'>
103
+ type IndexedBlock = MakeRequired<Block, 'minStateId' | 'maxStateId' | 'defaultState'>
104
104
 
105
105
  export interface IndexedData {
106
106
  isOlderThan(version: string): boolean
@@ -34,6 +34,7 @@ console.log(getMcData('bedrock_0.14').version)
34
34
 
35
35
  console.log(getMcData('pc_1.9').blocksByName['dirt'])
36
36
  console.log(getMcData('pc_1.9').blocksByName['dirt'].minStateId.toExponential)
37
+ console.log(getMcData('pc_1.9').blocksByName['dirt'].name.includes)
37
38
 
38
39
  console.log(getMcData('pc_1.9').protocol.toClient)
39
40