node-minecraft-protocol-forge icon indicating copy to clipboard operation
node-minecraft-protocol-forge copied to clipboard

How to setting a Forge 1.20.1 47.2.19 bot? #forge

Open wujekbobixon opened this issue 2 years ago • 1 comments

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?

wujekbobixon avatar Jan 14 '24 13:01 wujekbobixon

Hey i found a problem its is connected with wrong named mods i guess. I mean mod with version { modid: "the_bumblezone", version: "7.2.3+1.20.1-forge" }, just crashed fml on server

wujekbobixon avatar Jan 25 '24 19:01 wujekbobixon