PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
5.07k stars 921 forks source link

Bot gives an error passing bot check #2518

Open NyashMyash99 opened 2 years ago

NyashMyash99 commented 2 years ago

Versions

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)

U5B commented 2 years ago

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)

NyashMyash99 commented 2 years ago

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.

U5B commented 2 years ago

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

NyashMyash99 commented 2 years ago

Really, "messagestr" outputs necessary messages, thanks.

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

U5B commented 2 years ago

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.