minecraft-data 2.109.0 → 2.113.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 (54) hide show
  1. package/data.js +45 -14
  2. package/doc/api.md +8 -0
  3. package/doc/history.md +12 -0
  4. package/index.d.ts +7 -5
  5. package/index.js +4 -1
  6. package/minecraft-data/data/bedrock/1.16.201/proto.yml +58 -3
  7. package/minecraft-data/data/bedrock/1.16.201/protocol.json +123 -2
  8. package/minecraft-data/data/bedrock/1.16.201/version.json +6 -0
  9. package/minecraft-data/data/bedrock/1.16.210/proto.yml +58 -1
  10. package/minecraft-data/data/bedrock/1.16.210/protocol.json +122 -1
  11. package/minecraft-data/data/bedrock/1.16.210/version.json +6 -0
  12. package/minecraft-data/data/bedrock/1.16.220/proto.yml +6 -3
  13. package/minecraft-data/data/bedrock/1.16.220/protocol.json +42 -11
  14. package/minecraft-data/data/bedrock/1.16.220/version.json +6 -0
  15. package/minecraft-data/data/bedrock/1.17.0/proto.yml +6 -3
  16. package/minecraft-data/data/bedrock/1.17.0/protocol.json +42 -11
  17. package/minecraft-data/data/bedrock/1.17.0/version.json +6 -0
  18. package/minecraft-data/data/bedrock/1.17.10/proto.yml +6 -3
  19. package/minecraft-data/data/bedrock/1.17.10/protocol.json +42 -11
  20. package/minecraft-data/data/bedrock/1.17.10/version.json +6 -0
  21. package/minecraft-data/data/bedrock/1.17.30/proto.yml +6 -3
  22. package/minecraft-data/data/bedrock/1.17.30/protocol.json +42 -11
  23. package/minecraft-data/data/bedrock/1.17.30/version.json +6 -0
  24. package/minecraft-data/data/bedrock/{1.18.0 → 1.17.40}/blockCollisionShapes.json +0 -0
  25. package/minecraft-data/data/bedrock/{1.18.0 → 1.17.40}/blockStates.json +1228 -0
  26. package/minecraft-data/data/bedrock/{1.18.0 → 1.17.40}/blocks.json +5113 -5001
  27. package/minecraft-data/data/bedrock/1.17.40/proto.yml +1 -1
  28. package/minecraft-data/data/bedrock/1.17.40/protocol.json +10 -9
  29. package/minecraft-data/data/bedrock/1.17.40/version.json +6 -0
  30. package/minecraft-data/data/bedrock/1.18.0/proto.yml +3305 -0
  31. package/minecraft-data/data/bedrock/1.18.0/protocol.json +43 -12
  32. package/minecraft-data/data/bedrock/1.18.0/types.yml +1764 -0
  33. package/minecraft-data/data/bedrock/1.18.0/version.json +6 -0
  34. package/minecraft-data/data/bedrock/1.18.11/protocol.json +9791 -0
  35. package/minecraft-data/data/bedrock/1.18.11/version.json +6 -0
  36. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  37. package/minecraft-data/data/bedrock/latest/proto.yml +91 -30
  38. package/minecraft-data/data/bedrock/latest/types.yml +38 -2
  39. package/minecraft-data/data/dataPaths.json +45 -14
  40. package/minecraft-data/data/pc/1.13/recipes.json +18 -1
  41. package/minecraft-data/data/pc/1.13.2/recipes.json +18 -1
  42. package/minecraft-data/data/pc/1.14/recipes.json +18 -1
  43. package/minecraft-data/data/pc/1.14.4/recipes.json +18 -1
  44. package/minecraft-data/data/pc/1.15.2/recipes.json +18 -1
  45. package/minecraft-data/data/pc/1.16.1/recipes.json +18 -1
  46. package/minecraft-data/data/pc/1.16.2/recipes.json +18 -1
  47. package/minecraft-data/data/pc/1.17/recipes.json +18 -1
  48. package/minecraft-data/data/pc/1.18/recipes.json +18 -1
  49. package/minecraft-data/data/pc/common/protocolVersions.json +7 -0
  50. package/minecraft-data/doc/history.md +12 -0
  51. package/minecraft-data/schemas/version_schema.json +5 -1
  52. package/minecraft-data/tools/js/test/audit_datapaths.js +33 -0
  53. package/package.json +1 -1
  54. package/typings/index-template.d.ts +6 -5
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "22w05a",
4
+ "version": 1073741890,
5
+ "dataVersion": 2967,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.18"
8
+ },
2
9
  {
3
10
  "minecraftVersion": "22w03a",
4
11
  "version": 1073741889,
@@ -1,3 +1,15 @@
1
+ ## 2.113.0
2
+ * bedrock: add 1.18.11 protocol data
3
+
4
+ ## 2.112.0
5
+ * bedrock: version data parity, block state and protocol fixes
6
+
7
+ ## 2.111.0
8
+ * pc: add missing attributes pointer for 1.18
9
+
10
+ ## 2.110.0
11
+ * pc: add cake outshapes (@nickelpro, @SaubereSache)
12
+
1
13
  ## 2.109.0
2
14
  * pc: fix version for 1.18.1
3
15
 
@@ -14,7 +14,11 @@
14
14
  "majorVersion": {
15
15
  "type": "string",
16
16
  "pattern": "[0-9]+\\.[0-9]+[a-z]?"
17
+ },
18
+ "releaseType": {
19
+ "type": "string",
20
+ "pattern": "[a-z]+"
17
21
  }
18
22
  },
19
23
  "additionalProperties": false
20
- }
24
+ }
@@ -0,0 +1,33 @@
1
+ /* eslint-env mocha */
2
+
3
+ const fs = require('fs')
4
+ const { join } = require('path')
5
+ const assert = require('assert')
6
+
7
+ describe('audit dataPaths', function () {
8
+ const dataPaths = require('../../../data/dataPaths.json')
9
+ it('should have a dataPath for each file', function () {
10
+ require('./version_iterator')(function (p, versionString) {
11
+ const [type, version] = versionString.split(' ')
12
+ const dp = dataPaths[type][version]
13
+ const files = fs.readdirSync(p).map(f => f.split('.')[0])
14
+ for (const file of files) {
15
+ assert(dp[file], `missing dataPath for ${type} ${version} ${file}`)
16
+ }
17
+ })
18
+ })
19
+
20
+ it('dataPath should point to valid files', function () {
21
+ for (const version in dataPaths) {
22
+ for (const type in dataPaths[version]) {
23
+ const dp = dataPaths[version][type]
24
+ for (const file in dp) {
25
+ const path = dp[file]
26
+ const p = join(__dirname, '../../../data/' + path + '/' + file)
27
+ const exists = fs.existsSync(p + '.json') || fs.existsSync(p + '.yml')
28
+ assert(exists, `missing file for ${type} ${version} ${file}, path: ${p}`)
29
+ }
30
+ }
31
+ }
32
+ })
33
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "2.109.0",
3
+ "version": "2.113.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -1,15 +1,15 @@
1
1
  // This will interface will merge with the generated one
2
2
  export interface Version {
3
3
  // Returns true if the current version is greater than or equal to the `other` version's dataVersion
4
- ['>='](other)
4
+ ['>='](other: string): boolean
5
5
  // Returns true if the current version is greater than the `other` version's dataVersion
6
- ['>'](other)
6
+ ['>'](other: string): boolean
7
7
  // Returns true if the current version is less than the `other` version's dataVersion
8
- ['<'](other)
8
+ ['<'](other: string): boolean
9
9
  // Returns true if the current version is less than than or equal to the `other` version's dataVersion
10
- ['<='](other)
10
+ ['<='](other: string): boolean
11
11
  // Returns true if the current version is equal to the `other` version's dataVersion
12
- ['=='](other)
12
+ ['=='](other: string): boolean
13
13
  type: 'pc' | 'bedrock'
14
14
  }
15
15
 
@@ -60,6 +60,7 @@ export interface IndexedData {
60
60
 
61
61
  biomes: { [id: number]: Biome; };
62
62
  biomesArray: Biome[];
63
+ biomesByName: { [name: string]: Biome; };
63
64
 
64
65
  recipes: { [id: number]: Recipe[]; };
65
66