@nxg-org/mineflayer-auto-eat
TypeScript icon, indicating that this package has built-in type declarations

2.4.1 • Public • Published

Lazy readme here.

Look at src/example.ts for basic usage.

If you wish to manually call the eat function, there are three arguments:

  1. use offhand: boolean | undefined (defaults to false)
  2. food to eat: Item | md.Food (minecraft-data Food) | undefined (defaults to false)
    • The function will use the food specified (Item) or find an equivalent Item in its inventory (md.Food), or pick the best food available (undefined)
  3. equip old item: boolean | undefined (defaults to false)

Package Sidebar

Install

npm i @nxg-org/mineflayer-auto-eat

Weekly Downloads

3

Version

2.4.1

License

GPL-3.0

Unpacked Size

82.8 kB

Total Files

9

Last publish

Collaborators

  • generel_schwerz
  • rob9315