minecraft-data 3.61.2 → 3.62.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.
@@ -8,7 +8,7 @@ For bedrock edition see [bedrock.md](bedrock.md)
8
8
  | blocks.json | Yes | Use [minecraft-data-generator-server][2] |
9
9
  | items.json | Yes | Use [minecraft-data-generator-server][2] |
10
10
  | entities.json | Yes | Use [minecraft-data-generator-server][2] and run `extractPcEntityMetadata.js` script in tools/js to generate entity metadata in entities.json and protocol.json |
11
- | recipes.json | Yes | Use [minecraft-data-generator-server][2] | Make sure that `-1` in output are replaced with `null` |
11
+ | recipes.json | Yes | Use [Burger][12], then use [burger-extractor][13] | should eventually be changed to native data generators |
12
12
  | blockCollisionShapes.json | Yes | Use [minecraft-data-generator-server][2] |
13
13
  | commands.json | No? |Use [mc-data-command-generator][3] | Link to jar files have to be manually added |
14
14
  | biomes.json | Yes | Use [minecraft-data-generator-server][2] |
@@ -44,3 +44,5 @@ Additionally in data/pc/common the versions.json file needs to be updated with t
44
44
  [9]: https://github.com/PrismarineJS/minecraft-data-auto-updater
45
45
  [10]: https://github.com/PrismarineJS/node-minecraft-protocol
46
46
  [11]: https://github.com/PrismarineJS/minecraft-jar-extractor
47
+ [12]: https://github.com/Pokechu22/Burger
48
+ [13]: https://github.com/PrismarineJS/burger-extractor
@@ -1,3 +1,6 @@
1
+ ## 3.62.0
2
+ * [Fix 1.20.2 and 1.20.3 Recipes, change docs to say to use Burger inste… (#843)](https://github.com/PrismarineJS/minecraft-data/commit/d47396ed1e8962fa0310bb603fc3ff4a4521b4f4) (thanks @wgaylord)
3
+
1
4
  ## 3.61.2
2
5
  * [Add style to command param type enum in pc 1.20.3 protocol (#850)](https://github.com/PrismarineJS/minecraft-data/commit/4acaa9bd255951873eb11b12aca15a1079680d67) (thanks @extremeheat)
3
6
 
@@ -117,5 +117,17 @@ require('./version_iterator')(function (p, versionString) {
117
117
  ])
118
118
  }
119
119
  })
120
+ it('crafting benches has multiple recipes', () => {
121
+ const recipes = getIfExist(path.join(p, 'recipes.json'))
122
+ const items = getIfExist(path.join(p, 'items.json'))
123
+ if (recipes && items) {
124
+ const craftingTable = items.find(x => x.name === 'crafting_table')
125
+ const oakPlanks = items.find(x => x.name === 'oak_planks')
126
+ if (!oakPlanks) return // Bail if version doesn't have seperately defined planks, this prevents the test failing on versions that use metadata
127
+ const recipe = recipes[craftingTable.id]
128
+ if (!recipe[0]) return
129
+ assert.notEqual(recipe.length, 1) // Check that crafting table has multiple recipes.
130
+ }
131
+ })
120
132
  })
121
133
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.61.2",
3
+ "version": "3.62.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",