You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wana make a afk bot in server to dig some thing, so the script is simple.
I success make the bot login to the server's lobby(And use other player see the bot stand in the lobby to confirm my script is good)
Usually player should use command /main to go the slimefun server(Idk is call that server right, in the lobby there have 3 server slimefun | carpetsky | original)
But then I got kick. Console show a string An internal error occurred in your connection
What did you try yet?
Try to open DEBUG in console, it show the biome had load, then got kick.
Your current code
constmineflayer=require('mineflayer');constreadline=require('readline');constconfig={username: 'X',host: 'X',port: 25565,};asyncfunctioncreateBot(){try{constbot=mineflayer.createBot({host: config.host,port: config.port,username: config.username,auth: 'microsoft',});bot.on('resourcePack',(url,hash)=>{console.log('Resource pack URL:',url,'Hash:',hash);bot.acceptResourcePack();});bot.on('kicked',(reason,loggedIn)=>{console.log('Kicked from the server:',reason,'Logged in:',loggedIn);});bot.on('error',(err)=>{console.error('Error occurred:',err);});bot.on('end',()=>{console.log('Bot disconnected. The connection might have been closed by the server.');});bot.on('login',()=>{console.log('Bot successfully logged in.');});bot.once('spawn',()=>{console.log('Bot spawned in the world.');});bot.on('death',()=>{console.log('Bot died.');});bot.on('message',(message)=>{console.log('Chat message:',message.toAnsi());});constrl=readline.createInterface({input: process.stdin,output: process.stdout,});rl.on('line',(input)=>{if(input.startsWith('/')){bot.chat(input);console.log(`Executed command: ${input}`);}else{bot.chat(input);console.log(`Sent message: ${input}`);}});returnbot;}catch(error){console.error('Bot create fail: ',error);}}createBot();
Expected behavior
Login to the lobby
Turn in to Slimefun server
Additional context
The end of the DEBUG message
The text was updated successfully, but these errors were encountered:
I looked through the commits and found that the support merge for 1.21.3 failed. #3489
If this issue I opened is related to this issue, please remind me to close it or close it directly.
Versions
Detailed description of a problem
I wana make a afk bot in server to dig some thing, so the script is simple.
I success make the bot login to the server's lobby(And use other player see the bot stand in the lobby to confirm my script is good)
Usually player should use command
/main
to go the slimefun server(Idk is call that server right, in the lobby there have 3 server slimefun | carpetsky | original)But then I got kick. Console show a string
An internal error occurred in your connection
What did you try yet?
Try to open DEBUG in console, it show the biome had load, then got kick.
Your current code
Expected behavior
Additional context
The end of the DEBUG message
The text was updated successfully, but these errors were encountered: