Files
NitoriBot/modules/registry.js
T

12 lines
338 B
JavaScript
Raw Normal View History

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