mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Bot gives an error passing bot check

Open NyashMyash99 opened this issue 2 years ago • 5 comments

  • [X] The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.1.0
  • server: paper 1.16.5
  • node: 17.2.0

Detailed description of a problem

After passing bot check, bot gives an error: image

Your current code

import * as mineflayer from "mineflayer";

const bot = mineflayer.createBot({
    host: "mc.diamondworld.pro",
    username: "Ulyanka",
    version: "1.16.5"
});

bot.on("chat", (username, message) => {
    console.log(username, message);
});

bot.on("kicked", console.log);
bot.on("error", console.log);

Expected behavior

It is expected that bot will log into server without any problems. I assume that the error appears when bot receives request to download a server resourcepack.

Additional context

BungeeCord version: BotFilter 3.8.10 with 1.18.2 support (https://github.com/Leymooo/BungeeCord/commit/cfe43ca03defc598116e6569fc7678d5cf756ca6)

NyashMyash99 avatar Mar 07 '22 21:03 NyashMyash99

Can you try picking a specific version and trying again? Like picking 1.16.5 if the server is running 1.16.5 You may also want to log the title packet ('title' event) It also might be a 1.18.2 packet defimed wrong (declare_recipes)

U5B avatar Mar 07 '22 21:03 U5B

I checked account through admin command, it turns out it is online, but it stops receiving messages in "chat" event. I assume this is due upon receipt request to download a server resourcepack.

NyashMyash99 avatar Mar 07 '22 21:03 NyashMyash99

You may want to look at the API for assistance.

messagestr may work better in your case since it prints all messages

API has some things related to accepting a resource pack

U5B avatar Mar 07 '22 21:03 U5B

Really, "messagestr" outputs necessary messages, thanks.

With regard to first message, I already specify a version, it is taken from configuration file.

NyashMyash99 avatar Mar 07 '22 22:03 NyashMyash99

Really, "messagestr" outputs necessary messages, thanks.

With regard to first message, I already specify a version, it is taken from configuration file.

Sorry I am blind.

U5B avatar Mar 08 '22 00:03 U5B