Skip to content

Some attempts to connect to the public server #628

@Garcke

Description

@Garcke

Some servers require the verification of the Minecraft version before logging in. Therefore, when initializing the server, the "version" specified in the configuration file should be used.

..\src\utils\mcdata.js

export function initBot(username) {
    const settingsVersion = settings.minecraft_version;

    const options = {
        username: username,
        host: settings.host,
        port: settings.port,
        auth: settings.auth,
        version: settingsVersion,
    }
    if (!settingsVersion || settingsVersion === "auto") {
        delete options.version;
    }

and Some servers have "reconfiguration" requests during the connection process, but mineflayer's physics plugin was missing handlers for this, please refer to Disable physics during configuration packet
It might still end in failure.!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions