Skip to content

Instantly share code, notes, and snippets.

@u9g
Created March 5, 2021 22:02
Show Gist options
  • Save u9g/e0132ab69daa1503cbef43ba4d6f7e9b to your computer and use it in GitHub Desktop.
Save u9g/e0132ab69daa1503cbef43ba4d6f7e9b to your computer and use it in GitHub Desktop.
Add altening support to mineflayer
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
authServer: 'http://authserver.thealtening.com',
sessionServer: 'http://sessionserver.thealtening.com',
host: 'localhost',
port: 25565,
username: 'TOKEN',
password: '12345678',
version: false
})
bot.on('kicked', (reason, loggedIn) => console.log(reason, loggedIn))
bot.on('error', err => console.log(err))
bot.on('spawn', () => console.log('Bot Spawned'))
@thetruerailen
Copy link

I got a error when I tried to do this:

{"extra":[{"color":"red","text":"DecoderException : net.shieldcommunity.nullcordx.protocol.packets.exceptions.FastOverflowPacketException: Cannot receive string longer than 16 (got 19 characters) @ io.netty.handler.codec.MessageToMessageDecoder:98"}],"text":""} false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment