1.0.5 • Published 6 months ago

mineflayer-totem v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

How to install

npm i mineflayer-totem

example code:

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

// Create a bot instance with a valid username
const bot = mineflayer.createBot({
  host: 'localhost', // Replace with your server's address if necessary
  port: 25565,       // Replace with your server's port if necessary
  username: 'util_bot', // Ensure this is a valid username without spaces
  auth: 'microsoft'
});

// Event listener when the bot spawns successfully
bot.once('spawn', () => {
  
  // Initialize Food module
  const autoTotem = new mineflayerTotem(bot);  // Create a new instance of AutoTotem
  autoTotem.start();  // Start the auto-totem functionality

  // Initialize AutoTotem module and start it

});

// Handle connection errors or other issues
bot.on('error', (err) => {
});

bot.on('kicked', (reason) => {
});

bot.on('end', () => {
});

my github

https://github.com/GamerMrAlros/mineflayer-totem
My https://www.npmjs.com/~fourterms2
1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.1

7 months ago

2.0.0

7 months ago

1.0.0

7 months ago