https://github.com/prismarinejs/mineflayerarmormanager
https://github.com/prismarinejs/mineflayerarmormanager
bot minecraft mineflayer-bot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/prismarinejs/mineflayerarmormanager
- Owner: PrismarineJS
- License: mit
- Created: 2016-02-10T05:47:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-06-23T10:52:55.000Z (about 1 year ago)
- Last Synced: 2025-06-23T11:47:54.577Z (about 1 year ago)
- Topics: bot, minecraft, mineflayer-bot
- Language: TypeScript
- Size: 2.72 MB
- Stars: 29
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArmorManager
Plugin for [MineFlayer](https://github.com/PrismarineJS/mineflayer), that makes bot automatically equip better armor.

## Getting started
If using **NPM**:
`npm install mineflayer-armor-manager`
If using **YARN**:
`yarn add mineflayer-armor-manager`
## Usage
```js
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:
```js
bot.once("spawn", () => bot.armorManager.equipAll());
```
## License
MIT © [Konstantin Azizov](https://github.com/G07cha/)