javascript - MineFlayer bot Error: read ECONNRESET as I was trying to log it in to my server - Stack Overflow

时间: 2025-01-06 admin 业界

I was following a tutorial made by this guy:

I've written the exact code he had written, with only the 'version' added on

const mineflayer = require("mineflayer");

var settings = {
    username: 'TestBot',
    host: 'localhost',
    version: '1.21.4'
};

const bot = mineflayer.createBot(settings);