minecraft-data 3.14.0 → 3.15.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/data.js +1 -1
- package/doc/history.md +8 -0
- package/index.js +1 -1
- package/lib/supportsFeature.js +38 -50
- package/minecraft-data/data/dataPaths.json +2 -2
- package/minecraft-data/data/pc/1.19/recipes.json +27238 -0
- package/minecraft-data/doc/history.md +4 -0
- package/package.json +1 -1
- package/test/load.js +13 -0
package/package.json
CHANGED
package/test/load.js
CHANGED
|
@@ -81,4 +81,17 @@ describe('supportFeature', () => {
|
|
|
81
81
|
assert.equal(newVal, v, `Failed on mc version ${k} | Expected: ${v}, Got: ${newVal}`)
|
|
82
82
|
}
|
|
83
83
|
})
|
|
84
|
+
|
|
85
|
+
it('handles "_major" correctly on itemSerializationUsesBlockId', function () {
|
|
86
|
+
const mcData1Dot9 = require('minecraft-data')('1.9')
|
|
87
|
+
const mcData1Dot17 = require('minecraft-data')('1.12.2')
|
|
88
|
+
assert.equal(mcData1Dot9.supportFeature('itemSerializationUsesBlockId'), true)
|
|
89
|
+
assert.equal(mcData1Dot17.supportFeature('itemSerializationUsesBlockId'), true)
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
it('works on bedrock', function () {
|
|
93
|
+
const mcData = require('minecraft-data')('bedrock_1.18.0')
|
|
94
|
+
assert.equal(mcData.supportFeature('newRecipeSchema'), true)
|
|
95
|
+
assert.equal(mcData.supportFeature('fakeRecipeSchema'), false)
|
|
96
|
+
})
|
|
84
97
|
})
|