mineflayer-eat

1.0.5 • Public • Published

How to install

npm i mineflayer-eat

example code:

const mineflayer = require('mineflayer');
const Food = require('mineflayer-eat');  // Import the mineflayer-totem package

// Create the bot
const bot = mineflayer.createBot({
  host: 'localhost',  // Replace with your server's IP or hostname
  port: 25565,        // Replace with your server's port
  username: 'Bot',    // Replace with your bot's username
  auth: 'microsoft',  // Authentication type
});

// Initialize the Food module
const FoodModule = new Food(bot, 'foodlist.txt'); // Use a different variable name to avoid conflicts

my github

https://github.com/FourTerms2/mineflayer-utility-bot

Package Sidebar

Install

npm i mineflayer-eat

Weekly Downloads

14

Version

1.0.5

License

MIT

Unpacked Size

4.63 kB

Total Files

3

Last publish

Collaborators

  • fourterms2