Browse Source

Ajout protocol forge

master
fhalley 8 months ago
parent
commit
37d84beed8
  1. 2
      README.md
  2. 12
      bot5.js

2
README.md

@ -6,4 +6,4 @@ Le but est de disposer d'un outil suplémentaire dans le cadre de l'aide aux dev
|---|---|---|
| 0.1 | 15/06/2022 | Premier push |
| 0.11 | 16/06/2022 | Correction issue #1 |
| | | |
| 0.12 | 17/06/2022 | Ajout protocol forge |

12
bot5.js

@ -8,11 +8,17 @@ const autoeat = require("mineflayer-auto-eat")
// to add forge modules https://github.com/PrismarineJS/mineflayer/pull/472
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)
bot.loadPlugin(pathfinder)
bot.loadPlugin(autoeat)

Loading…
Cancel
Save