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 +14 -0
- package/doc/history.md +4 -0
- package/example.js +4 -0
- package/lib/indexes.js +4 -1
- package/lib/loader.js +5 -1
- package/minecraft-data/data/bedrock/common/features.json +5 -0
- package/minecraft-data/data/pc/common/protocolVersions.json +8 -0
- package/minecraft-data/doc/history.md +4 -0
- package/package.json +1 -1
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
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,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)
|