minecraft-data 2.221.0 → 3.2.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 (56) hide show
  1. package/.github/workflows/npm-publish.yml +17 -14
  2. package/data.js +24 -1
  3. package/doc/history.md +9 -0
  4. package/index.d.ts +14 -7
  5. package/lib/loader.js +1 -14
  6. package/minecraft-data/.git +1 -0
  7. package/minecraft-data/.github/workflows/tag.yml +11 -3
  8. package/minecraft-data/README.md +1 -1
  9. package/minecraft-data/data/bedrock/1.16.220/blockStates.json +6575 -6575
  10. package/minecraft-data/data/bedrock/1.17.0/instruments.json +1 -1
  11. package/minecraft-data/data/bedrock/1.17.40/blocks.json +3 -3
  12. package/minecraft-data/data/bedrock/1.18.0/blockLoot.json +56461 -0
  13. package/minecraft-data/data/bedrock/1.18.0/blocksJ2B.json +1 -0
  14. package/minecraft-data/data/bedrock/1.18.0/entityLoot.json +1246 -0
  15. package/minecraft-data/data/bedrock/1.18.0/recipes.json +1442 -1388
  16. package/minecraft-data/data/bedrock/1.18.11/blocks.json +3 -3
  17. package/minecraft-data/data/bedrock/1.18.11/proto.yml +3387 -0
  18. package/minecraft-data/data/bedrock/1.18.11/recipes.json +1442 -1388
  19. package/minecraft-data/data/bedrock/1.18.11/types.yml +1800 -0
  20. package/minecraft-data/data/bedrock/1.18.30/protocol.json +10098 -0
  21. package/minecraft-data/data/bedrock/1.18.30/version.json +6 -0
  22. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  23. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  24. package/minecraft-data/data/bedrock/latest/proto.yml +108 -17
  25. package/minecraft-data/data/bedrock/latest/types.yml +59 -2
  26. package/minecraft-data/data/dataPaths.json +24 -1
  27. package/minecraft-data/data/pc/1.10/items.json +1 -1
  28. package/minecraft-data/data/pc/1.11/items.json +18 -18
  29. package/minecraft-data/data/pc/1.12/instruments.json +1 -1
  30. package/minecraft-data/data/pc/1.12/items.json +18 -18
  31. package/minecraft-data/data/pc/1.13/instruments.json +1 -1
  32. package/minecraft-data/data/pc/1.13/items.json +1 -1
  33. package/minecraft-data/data/pc/1.13.2/instruments.json +1 -1
  34. package/minecraft-data/data/pc/1.13.2/items.json +1 -1
  35. package/minecraft-data/data/pc/1.14/items.json +1 -1
  36. package/minecraft-data/data/pc/1.14.4/instruments.json +1 -1
  37. package/minecraft-data/data/pc/1.14.4/items.json +1 -1
  38. package/minecraft-data/data/pc/1.15.2/instruments.json +1 -1
  39. package/minecraft-data/data/pc/1.15.2/items.json +1 -1
  40. package/minecraft-data/data/pc/1.16.1/instruments.json +1 -1
  41. package/minecraft-data/data/pc/1.16.1/items.json +1 -1
  42. package/minecraft-data/data/pc/1.16.2/items.json +1 -1
  43. package/minecraft-data/data/pc/1.17/biomes.json +134 -134
  44. package/minecraft-data/data/pc/1.17/items.json +1 -1
  45. package/minecraft-data/data/pc/1.18/biomes.json +62 -62
  46. package/minecraft-data/data/pc/1.7/items.json +1 -1
  47. package/minecraft-data/data/pc/1.8/items.json +1 -1
  48. package/minecraft-data/data/pc/1.9/items.json +1 -2
  49. package/minecraft-data/data/pc/common/protocolVersions.json +63 -0
  50. package/minecraft-data/doc/history.md +16 -0
  51. package/minecraft-data/schemas/biomes_schema.json +0 -4
  52. package/minecraft-data/schemas/blockLoot_schema.json +10 -0
  53. package/minecraft-data/schemas/blocks_schema.json +1 -1
  54. package/minecraft-data/schemas/entityLoot_schema.json +6 -0
  55. package/package.json +3 -3
  56. package/typings/index-template.d.ts +0 -3
@@ -19,20 +19,23 @@ jobs:
19
19
  with:
20
20
  node-version: 10.0.0
21
21
  - run: npm install
22
- - name: Publish if version has been updated
23
- if: github.event_name != 'workflow_dispatch'
24
- uses: pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
25
- with: # All of theses inputs are optional
26
- tag_name: "%s"
27
- tag_message: "%s"
28
- commit_pattern: "^Release (\\S+)"
29
- env: # More info about the environment variables in the README
30
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
31
- NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
32
- - name: Check if version has been updated
33
- if: github.event_name != 'workflow_dispatch'
34
- id: check
35
- uses: EndBug/version-check@v1
22
+ - id: publish
23
+ uses: JS-DevTools/npm-publish@v1
24
+ with:
25
+ token: ${{ secrets.NPM_AUTH_TOKEN }}
26
+ - name: Create Release
27
+ if: steps.publish.outputs.type != 'none'
28
+ id: create_release
29
+ uses: actions/create-release@v1
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+ with:
33
+ tag_name: ${{ steps.publish.outputs.version }}
34
+ release_name: Release ${{ steps.publish.outputs.version }}
35
+ body: ${{ steps.publish.outputs.version }}
36
+ draft: false
37
+ prerelease: false
38
+
36
39
  - name: "Trigger new GH Page creation in mcData repo"
37
40
  uses: peter-evans/repository-dispatch@v1
38
41
  if: steps.check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
package/data.js CHANGED
@@ -1255,7 +1255,9 @@ module.exports =
1255
1255
  get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.18.0/blocksJ2B.json") },
1256
1256
  proto: __dirname + '/minecraft-data/data/bedrock/1.18.0/proto.yml',
1257
1257
  types: __dirname + '/minecraft-data/data/bedrock/1.18.0/types.yml',
1258
- get version () { return require("./minecraft-data/data/bedrock/1.18.0/version.json") }
1258
+ get version () { return require("./minecraft-data/data/bedrock/1.18.0/version.json") },
1259
+ get entityLoot () { return require("./minecraft-data/data/bedrock/1.18.0/entityLoot.json") },
1260
+ get blockLoot () { return require("./minecraft-data/data/bedrock/1.18.0/blockLoot.json") }
1259
1261
  },
1260
1262
  '1.18.11': {
1261
1263
  get blocks () { return require("./minecraft-data/data/bedrock/1.18.11/blocks.json") },
@@ -1274,6 +1276,27 @@ module.exports =
1274
1276
  get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
1275
1277
  get blocksB2J () { return require("./minecraft-data/data/bedrock/1.18.11/blocksB2J.json") },
1276
1278
  get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.18.11/blocksJ2B.json") },
1279
+ proto: __dirname + '/minecraft-data/data/bedrock/1.18.11/proto.yml',
1280
+ types: __dirname + '/minecraft-data/data/bedrock/1.18.11/types.yml',
1281
+ get version () { return require("./minecraft-data/data/bedrock/1.18.11/version.json") }
1282
+ },
1283
+ '1.18.30': {
1284
+ get blocks () { return require("./minecraft-data/data/bedrock/1.18.11/blocks.json") },
1285
+ get blockStates () { return require("./minecraft-data/data/bedrock/1.18.11/blockStates.json") },
1286
+ get blockCollisionShapes () { return require("./minecraft-data/data/bedrock/1.18.11/blockCollisionShapes.json") },
1287
+ get biomes () { return require("./minecraft-data/data/bedrock/1.18.0/biomes.json") },
1288
+ get entities () { return require("./minecraft-data/data/bedrock/1.18.11/entities.json") },
1289
+ get items () { return require("./minecraft-data/data/bedrock/1.18.11/items.json") },
1290
+ get recipes () { return require("./minecraft-data/data/bedrock/1.18.11/recipes.json") },
1291
+ get instruments () { return require("./minecraft-data/data/bedrock/1.17.0/instruments.json") },
1292
+ get materials () { return require("./minecraft-data/data/pc/1.17/materials.json") },
1293
+ get enchantments () { return require("./minecraft-data/data/pc/1.17/enchantments.json") },
1294
+ get effects () { return require("./minecraft-data/data/pc/1.17/effects.json") },
1295
+ get protocol () { return require("./minecraft-data/data/bedrock/1.18.30/protocol.json") },
1296
+ get windows () { return require("./minecraft-data/data/bedrock/1.16.201/windows.json") },
1297
+ get steve () { return require("./minecraft-data/data/bedrock/1.16.201/steve.json") },
1298
+ get blocksB2J () { return require("./minecraft-data/data/bedrock/1.18.11/blocksB2J.json") },
1299
+ get blocksJ2B () { return require("./minecraft-data/data/bedrock/1.18.11/blocksJ2B.json") },
1277
1300
  proto: __dirname + '/minecraft-data/data/bedrock/latest/proto.yml',
1278
1301
  types: __dirname + '/minecraft-data/data/bedrock/latest/types.yml',
1279
1302
  get version () { return require("./minecraft-data/data/bedrock/1.18.11/version.json") }
package/doc/history.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 3.2.0
2
+ * update mcdata
3
+
4
+ ## 3.1.1
5
+ * update mcdata
6
+
7
+ ## 3.0.0
8
+ * update mcdata
9
+
1
10
  ## 2.221.0
2
11
  * update mcdata
3
12
 
package/index.d.ts CHANGED
@@ -37,10 +37,6 @@ declare namespace MinecraftData {
37
37
  * The type of precipitation: none, rain or snow
38
38
  */
39
39
  precipitation: string;
40
- /**
41
- * The depth of a biome
42
- */
43
- depth: number;
44
40
  /**
45
41
  * The dimension of a biome: overworld, nether or end
46
42
  */
@@ -87,6 +83,12 @@ declare namespace MinecraftData {
87
83
  * The name of the block
88
84
  */
89
85
  block: string;
86
+ /**
87
+ * The states of the block (Bedrock Edition)
88
+ */
89
+ states?: {
90
+ [k: string]: unknown;
91
+ };
90
92
  /**
91
93
  * The list of item drops
92
94
  */
@@ -97,6 +99,10 @@ declare namespace MinecraftData {
97
99
  * The name of the item being dropped
98
100
  */
99
101
  item: string;
102
+ /**
103
+ * The metadata of the item being dropped (Bedrock Edition)
104
+ */
105
+ metadata?: number;
100
106
  /**
101
107
  * The percent chance of the item drop to occur
102
108
  */
@@ -436,6 +442,10 @@ declare namespace MinecraftData {
436
442
  * The name of the item being dropped
437
443
  */
438
444
  item: string;
445
+ /**
446
+ * The metadata of the item being dropped (Bedrock Edition)
447
+ */
448
+ metadata?: number;
439
449
  /**
440
450
  * The percent chance of the item drop to occur
441
451
  */
@@ -979,9 +989,6 @@ declare namespace MinecraftData {
979
989
  protocol: any;
980
990
  protocolComments: any;
981
991
 
982
- findItemOrBlockById(id: number): Block | Item;
983
- findItemOrBlockByName(name: string): Block | Item;
984
-
985
992
  windows: { [id: number]: Window; };
986
993
  windowsByName: { [name: string]: Window; };
987
994
  windowsArray: Window[];
package/lib/loader.js CHANGED
@@ -82,19 +82,6 @@ function mcDataToNode (mcData) {
82
82
  mapIconsByName: indexes.mapIconsByName,
83
83
  mapIconsArray: mcData.mapIcons,
84
84
 
85
- tints: mcData.tints,
86
-
87
- findItemOrBlockById: function (id) {
88
- console.log('{mcData}.findItemOrBlockById() is deprecated, scheduled to be removed on or after April 1 2022')
89
- const item = indexes.itemsById[id]
90
- if (item !== undefined) return item
91
- return indexes.blocksById[id]
92
- },
93
- findItemOrBlockByName: function (name) {
94
- console.log('{mcData}.findItemOrBlockByName() is deprecated, scheduled to be removed on or after April 1 2022')
95
- const item = indexes.itemsByName[name]
96
- if (item !== undefined) return item
97
- return indexes.blocksByName[name]
98
- }
85
+ tints: mcData.tints
99
86
  }
100
87
  }
@@ -0,0 +1 @@
1
+ gitdir: ../.git/modules/minecraft-data
@@ -13,10 +13,18 @@ jobs:
13
13
  with:
14
14
  text: ${{ github.event.head_commit.message }}
15
15
  regex: '^Release ([0-9]+\.[0-9]+\.[0-9]+)'
16
- - uses: actions-ecosystem/action-push-tag@v1
17
- if: ${{ steps.regex-match.outputs.match != '' }}
16
+ - name: Create Release
17
+ if: steps.regex-match.outputs.match != ''
18
+ id: create_release
19
+ uses: actions/create-release@v1
20
+ env:
21
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18
22
  with:
19
- tag: ${{ steps.regex-match.outputs.group1 }}
23
+ tag_name: ${{ steps.regex-match.outputs.group1 }}
24
+ release_name: Release ${{ steps.regex-match.outputs.group1 }}
25
+ body: ${{ steps.regex-match.outputs.group1 }}
26
+ draft: false
27
+ prerelease: false
20
28
  - uses: peter-evans/repository-dispatch@v1
21
29
  if: ${{ steps.regex-match.outputs.match != '' }}
22
30
  with:
@@ -10,7 +10,7 @@ Language independent module providing minecraft data for minecraft clients, serv
10
10
  Supports
11
11
  * Minecraft PC version 0.30c (classic), 1.7.10, 1.8.8, 1.9 (15w40b, 1.9, 1.9.1-pre2, 1.9.2, 1.9.4),
12
12
  1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18 (1.18, 1.18.1, 1.18.2)
13
- * Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0
13
+ * Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30
14
14
 
15
15
  ## Wrappers
16
16