const mf = require('mineflayer')
const pv = require('prismarine-viewer')
const bot = mf.createBot({
username: 'Bot',
password: 'pass',
host: '185.35.19.210',
port: 25565,
})
bot.once('spawn', () => {
pv(bot, { port: 3000 })
bot.chat('/log password')
const path = [bot.entity.position.clone()]
bot.on('move', () => {
if (path[path.length - 1].distanceTo(bot.entity.position) > 1) {
path.push(bot.entity.position.clone())
bot.viewer.drawLine('path', path)
}
})
})
I tried to connect the plugin https://github.com/G07cha/MineflayerAutoAuth but I couldn’t, because of incomprehensible mistakes for me. The usual prismarine-auth won’t work for me because I don’t have a license. I will be waiting for your comments.
New contributor
Lirihiwa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.