minecraft-data 3.42.1 → 3.43.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.
package/doc/api.md CHANGED
@@ -651,6 +651,16 @@ Example:
651
651
  console.log(mcData.legacy.pc.blocks['171:15']) // Returns: 'minecraft:black_carpet'
652
652
  ```
653
653
 
654
+ ### minecraftData.legacy.bedrock.blocks
655
+
656
+ Mapping from 1.2 block:metadata to 1.18.10 block names
657
+
658
+ Example:
659
+
660
+ ```js
661
+ console.log(mcData.legacy.bedrock.blocks['242:0']) // Returns: 'minecraft:camera'
662
+ ```
663
+
654
664
  ## Schemas
655
665
 
656
666
  These are common data and directly available in the `minecraftData` object.
package/doc/history.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # History
2
2
 
3
+ ## 3.43.0
4
+
5
+ * update `minecraft-data`
6
+ * Add legacy bedrock block mappings (thanks @Flonja)
7
+
3
8
  ## 3.42.1
4
9
 
5
10
  * update `minecraft-data`
package/index.js CHANGED
@@ -107,7 +107,8 @@ module.exports.versionsByMinecraftVersion = versionsByMinecraftVersion
107
107
  module.exports.preNettyVersionsByProtocolVersion = preNettyVersionsByProtocolVersion
108
108
  module.exports.postNettyVersionsByProtocolVersion = postNettyVersionsByProtocolVersion
109
109
  module.exports.legacy = {
110
- pc: require('./minecraft-data/data/pc/common/legacy.json')
110
+ pc: require('./minecraft-data/data/pc/common/legacy.json'),
111
+ bedrock: require('./minecraft-data/data/bedrock/common/legacy.json')
111
112
  }
112
113
 
113
114
  const schemas = {