Plugin for MineFlayer, that makes bot automatically equip better armor.
If using NPM:
npm install mineflayer-armor-manager
If using YARN:
yarn add mineflayer-armor-manager
const armorManager = require("mineflayer-armor-manager");
const mineflayer = require("mineflayer");
const bot = mineflayer.createBot({
username: "Player",
host: "localhost",
port: 25565,
});
bot.loadPlugin(armorManager);
If needed, it's possible to trigger a function that will check whole inventory and equip best possible armor, on spawn for example:
bot.once("spawn", () => bot.armorManager.equipAll());
MIT © Konstantin Azizov