Created
March 5, 2021 22:02
-
-
Save u9g/e0132ab69daa1503cbef43ba4d6f7e9b to your computer and use it in GitHub Desktop.
Add altening support to mineflayer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got a error when I tried to do this: