-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
host: IP, // minecraft server ip
username: 'Trolololo',
//password: '12345678' // minecraft password, comment out if you want to log into online-mode=false servers
port: 25566,
version: "1.18.2",
// auth: 'mojang' // only set if you need microsoft auth, then set this to 'microsoft'
})
var forgeHandshake = require('minecraft-protocol-forge').forgeHandshake
forgeHandshake(bot._client, {
forgeMods: [
{ modid: 'feature_nbt_deadlock_be_gone', version: '2.0.0+1.18.2' },
{ modid: 'create', version: '0.4.1' },
{ modid: 'citadel', version: '1.11.3' },
{ modid: 'autoreglib', version: '1.7-53' },
{ modid: 'alexsmobs', version: '1.18.3' },
{ modid: 'flywheel', version: '1.18-0.6.2' },
{ modid: 'idas', version: '1.1.3+1.18.2' },
{ modid: 'quark', version: '3.2-356' },
{ modid: 'xaeroworldmap', version: '1.20.3.1' }
]
})
bot.on('chat', (username, message) => {
if (username === bot.username) return
bot.chat(message)
})
// Log errors and kick reasons:
bot.on('kicked', console.log)
bot.on('error', console.log)
Chunk size is 129 but only 1 was read ; partial packet : {"name":26}; buffer :1a7f7b227472616e736c617465223a22646973636f6e6e6563742e67656e65726963526561736f6e222c2277697468223a5b22496e7465726e616c20457863657074696f6e3a206a6176612e6c616e672e4e756d626572466f726d6174457863657074696f6e3a20466f7220696e70757420737472696e673a205c225c22225d7d
Metadata
Metadata
Assignees
Labels
No labels