|
@ -8,11 +8,17 @@ const autoeat = require("mineflayer-auto-eat") |
|
|
// to add forge modules https://github.com/PrismarineJS/mineflayer/pull/472
|
|
|
// to add forge modules https://github.com/PrismarineJS/mineflayer/pull/472
|
|
|
|
|
|
|
|
|
const options = { |
|
|
const options = { |
|
|
host: "127.0.0.1", // Server IP
|
|
|
|
|
|
port: 50128, // Server port
|
|
|
|
|
|
username: 'V5-Bot', // Bot name
|
|
|
|
|
|
|
|
|
host: "127.0.0.1", |
|
|
|
|
|
port: 50500, |
|
|
|
|
|
username: 'V5-Bot' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var mc = require('minecraft-protocol'); |
|
|
|
|
|
var autoVersionForge = require('minecraft-protocol-forge').autoVersionForge; |
|
|
|
|
|
var client = mc.createClient(options); |
|
|
|
|
|
|
|
|
|
|
|
autoVersionForge(client); |
|
|
|
|
|
|
|
|
const bot = mineflayer.createBot(options) |
|
|
const bot = mineflayer.createBot(options) |
|
|
bot.loadPlugin(pathfinder) |
|
|
bot.loadPlugin(pathfinder) |
|
|
bot.loadPlugin(autoeat) |
|
|
bot.loadPlugin(autoeat) |
|
|