# mineflayer-armor-manager

> Manage armor automatically with various configs

Latest version **2.0.1** (published 2023-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mineflayer-armor-manager
pnpm add mineflayer-armor-manager
yarn add mineflayer-armor-manager
bun add mineflayer-armor-manager
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2023-07-01 |
| First published | 2016-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | G07cha |
| Maintainers | rom1504, g07cha, thedudefromci |
| Keywords | mineflayer, minecraft, armor |

## Links

- npm: https://www.npmjs.com/package/mineflayer-armor-manager
- Repository: https://github.com/G07cha/MineflayerArmorManager
- Homepage: https://github.com/G07cha/MineflayerArmorManager#readme
- Issues: https://github.com/G07cha/MineflayerArmorManager/issues
- npm.io page: https://npm.io/package/mineflayer-armor-manager

## Dependencies (1)

- [minecraft-data](https://npm.io/package/minecraft-data.md) ^3.38.0

## Recent versions

- 2.0.1 (latest) — 2023-07-01
- 2.0.0 — 2023-07-01
- 1.4.2 — 2021-07-17
- 1.4.1 — 2021-04-14
- 1.4.0 — 2020-12-30
- 1.3.0 — 2020-08-22
- 1.2.0 — 2020-08-22
- 1.1.0 — 2020-07-17
- 1.0.0 — 2020-06-26
- 0.0.2 — 2016-02-27
- 0.0.1 — 2016-02-14

## README

# ArmorManager

Plugin for [MineFlayer](https://github.com/PrismarineJS/mineflayer), that makes bot automatically equip better armor.

![Footage](/footage.gif)

## 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/)

---
_Source: https://npm.io/package/mineflayer-armor-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
