2023-12-17 14:55:27 -05:00
|
|
|
const createRegistry = require('prismarine-registry')
|
|
|
|
|
2024-01-12 12:24:01 -05:00
|
|
|
function registry (bot) {
|
2023-12-17 14:55:27 -05:00
|
|
|
bot.on('packet.login', packet => {
|
|
|
|
bot.registry = createRegistry(bot._client.version)
|
2024-01-26 21:24:08 -05:00
|
|
|
// bot.registry.loadDimensionCodec(packet.dimensionCodec)
|
2023-12-17 14:55:27 -05:00
|
|
|
bot.emit('registry_ready', bot.registry)
|
|
|
|
})
|
|
|
|
}
|
2024-01-26 21:24:08 -05:00
|
|
|
//1.20.2 support wooooooo
|
2024-01-12 12:24:01 -05:00
|
|
|
module.exports = registry
|