Skip to content

How to setting a Forge 1.20.1 47.2.19 bot? #forge  #35

@wujekbobixon

Description

@wujekbobixon

Hey everyone i have a problem to get mod list from my server forge.

NODE_DEBUG = "minecraft-protocol-forge";

const autoVersionForge = require("minecraft-protocol-forge/src/client/autoVersionForge");
const mineflayer = require("mineflayer");
const pathfinder = require("mineflayer-pathfinder");

const bot = mineflayer.createBot({
  version: false,
  host: "ip",
  port: "port",
  username: "",
  password: "",
});

// leave options empty for guessing, otherwise specify the mods,
// channels and registries manually (channels and registries are only
// relevant for fml2 handshake)
const options = {
  forgeMods: undefined,
  channels: undefined,
};

// add handler
autoVersionForge(bot._client, options);
console.log(options);

bot.loadPlugin(pathfinder.pathfinder);
console.info("Started mineflayer");

// set up logging
bot.on("connect", function () {
  console.info("connected");
});

bot.on("spawn", function () {
  console.info("I spawned");
});

it is a start example from repo here. This code send a request to my server but server get a Vanilia type of user. [Netty Epoll Server IO #4/ERROR] [ne.mi.ne.NetworkRegistry/NETREGISTRY]: Channels [simpleplanes:main,spawn:network,aether:main,citadel:main_channel,nitrogen_internals:main,epicfight:network_manager,curios:main,geckolib:main] rejected vanilla connections. Disconnecting VANILLA connection attempt: This server has mods that require Forge to be installed on the client. Contact your server admin for more details.

Anyone can help me with this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions