minecraft-data
Advanced tools
Comparing version 3.64.0 to 3.64.1
@@ -165,2 +165,16 @@ # API | ||
## Sounds | ||
### mcData.sounds | ||
Sounds indexed by id | ||
### mcData.soundsByName | ||
Sounds indexed by name | ||
### mcData.soundsArray | ||
Array of sounds | ||
## Recipes | ||
@@ -167,0 +181,0 @@ |
# History | ||
## 3.64.1 | ||
* update `minecraft-data` | ||
## 3.64.0 | ||
@@ -4,0 +8,0 @@ |
@@ -52,4 +52,8 @@ const mcData = require('minecraft-data')('1.8.8') | ||
console.log(require('minecraft-data')('1.15.2').attributes['generic.movementSpeed']) | ||
console.log(require('minecraft-data')('1.16').attributes['minecraft:generic.movement_speed']) | ||
console.log(require('minecraft-data')('1.15.2').attributesByName.movementSpeed) | ||
console.log(require('minecraft-data')('1.16').attributesByName.movementSpeed) | ||
console.log(require('minecraft-data')('1.16.5').sounds[21]) | ||
console.log(require('minecraft-data')('1.16.5').soundsByName['ambient.underwater.loop.additions.ultra_rare']) |
@@ -58,5 +58,8 @@ const indexer = require('./indexer.js') | ||
attributesByName: indexer.buildIndexFromArray(mcData.attributes, 'name'), | ||
attributesByResource: indexer.buildIndexFromArray(mcData.attributes, 'resource') | ||
attributesByResource: indexer.buildIndexFromArray(mcData.attributes, 'resource'), | ||
soundsById: mcData.sounds === undefined ? undefined : indexer.buildIndexFromArray(mcData.sounds, 'id'), | ||
soundsByName: mcData.sounds === undefined ? undefined : indexer.buildIndexFromArray(mcData.sounds, 'name') | ||
} | ||
} |
@@ -84,4 +84,8 @@ module.exports = mcDataToNode | ||
tints: mcData.tints | ||
tints: mcData.tints, | ||
sounds: indexes.soundsById, | ||
soundsByName: indexes.soundsByName, | ||
soundsArray: mcData.sounds | ||
} | ||
} |
@@ -80,3 +80,8 @@ [ | ||
"versions": ["1.20.61", "latest"] | ||
}, | ||
{ | ||
"name": "blockHashes", | ||
"description": "Block runtime IDs are generated from a hash function", | ||
"versions": ["1.19.80", "latest"] | ||
} | ||
] |
@@ -0,1 +1,5 @@ | ||
## 3.64.1 | ||
* [Update bedrock features.json to add `blockHashes`](https://github.com/PrismarineJS/minecraft-data/commit/bf994a81894ab47cf031ecdc9dff7165ac89e56e) (thanks @extremeheat) | ||
* [Add 24w12a to pc protocolVersions.json](https://github.com/PrismarineJS/minecraft-data/commit/8a914067da3998bc8b84f41c33e3cf5fb8980599) (thanks @github-actions[bot]) | ||
## 3.64.0 | ||
@@ -2,0 +6,0 @@ * [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) |
{ | ||
"name": "minecraft-data", | ||
"version": "3.64.0", | ||
"version": "3.64.1", | ||
"description": "Provide easy access to minecraft data in node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164621158
5182364