# mineflayer-tool

> A tool/weapon selection Mineflayer plugin for automatically selecting the best tool to use for a specific task.

Latest version **1.2.0** (published 2022-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install mineflayer-tool
pnpm add mineflayer-tool
yarn add mineflayer-tool
bun add mineflayer-tool
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-05-11 |
| First published | 2020-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | TheDudeFromCI |
| Maintainers | thedudefromci |
| Keywords | mineflayer, plugin, tool, weapon, utility |

## Links

- npm: https://www.npmjs.com/package/mineflayer-tool
- Repository: https://github.com/TheDudeFromCI/mineflayer-tool
- Homepage: https://github.com/TheDudeFromCI/mineflayer-tool#readme
- Issues: https://github.com/TheDudeFromCI/mineflayer-tool/issues
- npm.io page: https://npm.io/package/mineflayer-tool

## Dependencies (3)

- [mineflayer](https://npm.io/package/mineflayer.md) ^4.0.0
- [prismarine-nbt](https://npm.io/package/prismarine-nbt.md) ^2.0.0
- [mineflayer-pathfinder](https://npm.io/package/mineflayer-pathfinder.md) ^2.1.1

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2022-05-11
- 1.1.0 — 2020-10-29
- 1.0.2 — 2020-10-29

## README

<h1 align="center">Mineflayer-Tool</h1>
<p align="center"><i>A tool/weapon selection Mineflayer plugin for automatically selecting the best tool to use for a specific task.</i></p>

<p align="center">
  <img src="https://github.com/TheDudeFromCI/mineflayer-tool/workflows/Build/badge.svg" />
  <img src="https://img.shields.io/npm/v/mineflayer-tool" />
  <img src="https://img.shields.io/github/repo-size/TheDudeFromCI/mineflayer-tool" />
  <img src="https://img.shields.io/npm/dm/mineflayer-tool" />
  <img src="https://img.shields.io/github/contributors/TheDudeFromCI/mineflayer-tool" />
  <img src="https://img.shields.io/github/license/TheDudeFromCI/mineflayer-tool" />
</p>

---

### Getting Started

This plugin is built using Node and can be installed using:
```bash
npm install --save mineflayer-tool
```

### Simple Bot

The brief description goes here.

```js
const mineflayer = require('mineflayer')
const toolPlugin = require('mineflayer-tool').plugin

const bot = mineflayer.createBot({ username: 'MiningTool_Bot' })
bot.loadPlugin(toolPlugin)

bot.on('spawn', async () => {
  const blockPos = bot.entity.position.offset(0, -1, 0)
  const block = bot.blockAt(blockPos)

  await bot.tool.equipForBlock(block, {})
  await bot.dig(block)
 })
```

### Documentation

[API](https://github.com/TheDudeFromCI/mineflayer-tool/blob/master/docs/api.md)

[Examples](https://github.com/TheDudeFromCI/mineflayer-tool/tree/master/examples)

### License

This project uses the [MIT](https://github.com/TheDudeFromCI/mineflayer-tool/blob/master/LICENSE) license.

### Contributions

This project is accepting PRs and Issues. See something you think can be improved? Go for it! Any and all help is highly appreciated!

For larger changes, it is recommended to discuss these changes in the issues tab before writing any code. It's also preferred to make many smaller PRs than one large one, where applicable.

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