minecraft-data 3.64.0 → 3.64.1

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
@@ -162,6 +162,20 @@ console.log(mcData.biomesByName['windswept_gravelly_hills']) // Object containin
162
162
 
163
163
  Array of biomes
164
164
 
165
+ ## Sounds
166
+
167
+ ### mcData.sounds
168
+
169
+ Sounds indexed by id
170
+
171
+ ### mcData.soundsByName
172
+
173
+ Sounds indexed by name
174
+
175
+ ### mcData.soundsArray
176
+
177
+ Array of sounds
178
+
165
179
  ## Recipes
166
180
 
167
181
  ### mcData.recipes
package/doc/history.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # History
2
2
 
3
+ ## 3.64.1
4
+
5
+ * update `minecraft-data`
6
+
3
7
  ## 3.64.0
4
8
 
5
9
  * update `minecraft-data`
package/example.js CHANGED
@@ -49,6 +49,10 @@ console.log(require('minecraft-data')('1.16.4').mapIconsByName.player)
49
49
  console.log(require('minecraft-data').legacy.pc.blocks['0:0'])
50
50
 
51
51
  console.log(require('minecraft-data')('1.15.2').attributes['generic.movementSpeed'])
52
+
52
53
  console.log(require('minecraft-data')('1.16').attributes['minecraft:generic.movement_speed'])
53
54
  console.log(require('minecraft-data')('1.15.2').attributesByName.movementSpeed)
54
55
  console.log(require('minecraft-data')('1.16').attributesByName.movementSpeed)
56
+
57
+ console.log(require('minecraft-data')('1.16.5').sounds[21])
58
+ console.log(require('minecraft-data')('1.16.5').soundsByName['ambient.underwater.loop.additions.ultra_rare'])
package/lib/indexes.js CHANGED
@@ -55,7 +55,10 @@ module.exports = function (mcData) {
55
55
  mapIconsByName: indexer.buildIndexFromArray(mcData.mapIcons, 'name'),
56
56
 
57
57
  attributesByName: indexer.buildIndexFromArray(mcData.attributes, 'name'),
58
- attributesByResource: indexer.buildIndexFromArray(mcData.attributes, 'resource')
58
+ attributesByResource: indexer.buildIndexFromArray(mcData.attributes, 'resource'),
59
+
60
+ soundsById: mcData.sounds === undefined ? undefined : indexer.buildIndexFromArray(mcData.sounds, 'id'),
61
+ soundsByName: mcData.sounds === undefined ? undefined : indexer.buildIndexFromArray(mcData.sounds, 'name')
59
62
 
60
63
  }
61
64
  }
package/lib/loader.js CHANGED
@@ -81,6 +81,10 @@ function mcDataToNode (mcData) {
81
81
  mapIconsByName: indexes.mapIconsByName,
82
82
  mapIconsArray: mcData.mapIcons,
83
83
 
84
- tints: mcData.tints
84
+ tints: mcData.tints,
85
+
86
+ sounds: indexes.soundsById,
87
+ soundsByName: indexes.soundsByName,
88
+ soundsArray: mcData.sounds
85
89
  }
86
90
  }
@@ -77,5 +77,10 @@
77
77
  "name": "compressorInPacketHeader",
78
78
  "description": "Packet header includes compressor",
79
79
  "versions": ["1.20.61", "latest"]
80
+ },
81
+ {
82
+ "name": "blockHashes",
83
+ "description": "Block runtime IDs are generated from a hash function",
84
+ "versions": ["1.19.80", "latest"]
80
85
  }
81
86
  ]
@@ -1,4 +1,12 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "24w12a",
4
+ "version": 1073742005,
5
+ "dataVersion": 3824,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.20",
8
+ "releaseType": "snapshot"
9
+ },
2
10
  {
3
11
  "minecraftVersion": "24w11a",
4
12
  "version": 1073742004,
@@ -1,3 +1,7 @@
1
+ ## 3.64.1
2
+ * [Update bedrock features.json to add `blockHashes`](https://github.com/PrismarineJS/minecraft-data/commit/bf994a81894ab47cf031ecdc9dff7165ac89e56e) (thanks @extremeheat)
3
+ * [Add 24w12a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/8a914067da3998bc8b84f41c33e3cf5fb8980599) (thanks @github-actions[bot])
4
+
1
5
  ## 3.64.0
2
6
  * [Fixed 1.20.3 and 1.20.4 loginPacket version was set incorrectly on data/dataPaths.json (#853)](https://github.com/PrismarineJS/minecraft-data/commit/73679065860242acb6b8bf2692718700a1bd5c37) (thanks @n-qber)
3
7
  * [Added a resource pack UUID feature that 1.20.3 and later versions use. (#854)](https://github.com/PrismarineJS/minecraft-data/commit/90d6ddac514232e2b609ad6f71012d052210a833) (thanks @TerminalCalamitas)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.64.0",
3
+ "version": "3.64.1",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",