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
@@ -23,6 +23,12 @@
23
23
  "description": "The name of the item being dropped",
24
24
  "type": "string"
25
25
  },
26
+ "metadata": {
27
+ "description": "The metadata of the item being dropped (Bedrock Edition)",
28
+ "type": "integer",
29
+ "minimum": 0,
30
+ "maximum": 127
31
+ },
26
32
  "dropChance": {
27
33
  "description": "The percent chance of the item drop to occur",
28
34
  "type": "number"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "2.221.0",
3
+ "version": "3.2.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -36,9 +36,9 @@
36
36
  "@types/node": "^17.0.2",
37
37
  "json-schema-to-typescript": "^10.0.3",
38
38
  "minecraft-packets": "^1.4.0",
39
- "mocha": "^9.0.0",
39
+ "mocha": "^10.0.0",
40
40
  "require-self": "^0.2.3",
41
- "standard": "^16.0.1",
41
+ "standard": "^17.0.0",
42
42
  "typescript": "^4.0.2"
43
43
  },
44
44
  "dependencies": {}
@@ -135,9 +135,6 @@ export interface IndexedData {
135
135
  protocol: any;
136
136
  protocolComments: any;
137
137
 
138
- findItemOrBlockById(id: number): Block | Item;
139
- findItemOrBlockByName(name: string): Block | Item;
140
-
141
138
  windows: { [id: number]: Window; };
142
139
  windowsByName: { [name: string]: Window; };
143
140
  windowsArray: Window[];