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 +10 -0
- package/doc/history.md +5 -0
- package/index.js +2 -1
- package/minecraft-data/data/bedrock/common/legacy.json +1931 -0
- package/minecraft-data/doc/history.md +3 -0
- package/package.json +1 -1
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
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 = {
|