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.
@@ -1,3 +1,7 @@
1
+ ## 3.15.0
2
+
3
+ * added Burger extracted recipes.json for 1.19 (thanks @FCKJohni)
4
+
1
5
  ## 3.14.0
2
6
 
3
7
  * update 1.19 features list (@extremeheat)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
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
  })