PrismarineJS / node-minecraft-protocol-forge

Plugin to add FML/Forge client support (including auto-versioning) to node-minecraft-protocol
52 stars 19 forks source link

Not even loading the plugin? #37

Open prljav opened 4 months ago

prljav commented 4 months ago

I'm pretty sure im doing something wrong, but could anyone help? STDOUT:

connected
{"text":"This server has mods that require Forge to be installed on the client. Contact your server admin for more details."} false

code:


var mc = require('minecraft-protocol');
var autoVersionForge = require('minecraft-protocol-forge').autoVersionForge;
const bot = mineflayer.createBot({
          version: false,
        host: 'xxx.xxx.xxx.xxx',
          port: 'xxxx',
          username: "xxx@xxx.xxx",
        auth:"microsoft"
})
const options = {
          forgeMods: undefined,
          channels: undefined
}
autoVersionForge(bot._client, options)
bot.on('connect', function () {
          console.info('connected')
})

bot.on('spawn', function () {
          console.info('I spawned')
})
bot.on('end', (x) =>{console.log(x)})
bot.on('kicked', console.log)

console.log('done')

My best guess would be that the client attempts to connect to the server before loading the plugin, which would of course make it not use it.

prljav commented 4 months ago

seems like a dupe of a lot of previous issues, anyone got any ideas? also tried with version false and version 1.20.1(which the server is on) and nothing changed

Felix-Jonathan commented 2 months ago

Same here, if you have Solutions i want it