
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
mineflayer-utility-bot
Advanced tools
A utility package for Mineflayer bots, including automatic eating and totem handling.
A comprehensive Mineflayer utility package that combines automatic eating, totem management, and death tracking into a single module.
GitHub Repository: https://github.com/FourTerms2/mineflayer-utility-bot
Join our Discord server for support, updates, and community discussions. For faster support, please make a ticket: https://discord.gg/RMC3PcKrpt
death.txt filenpm install mineflayer-utility-bot
const mineflayer = require('mineflayer');
const { Food, AutoTotem, BotDeath } = require('mineflayer-utility-bot');
const bot = mineflayer.createBot({
host: 'localhost',
username: 'bot'
});
// Initialize all utilities
const food = new Food(bot);
const autoTotem = new AutoTotem(bot);
autoTotem.start();
const deathTracker = new BotDeath(bot);
You can use only the modules you need:
// Only auto-eating
const { Food } = require('mineflayer-utility-bot');
const food = new Food(bot);
// Only totem management
const { AutoTotem } = require('mineflayer-utility-bot');
const autoTotem = new AutoTotem(bot);
autoTotem.start();
// Only death tracking
const { BotDeath } = require('mineflayer-utility-bot');
const deathTracker = new BotDeath(bot);
Constructor: new Food(bot)
Properties:
foodList - Array of food items the bot will eatDefault Food List:
minecraft:cooked_beefminecraft:cooked_chickenminecraft:breadMethods:
normalizeFoodName(foodName) - Adds minecraft: prefix if missingstartAutoEat() - Begins automatic eating looptryToEat() - Attempts to eat food from inventoryfindFoodInInventory() - Searches for consumable foodConstructor: new AutoTotem(bot)
Properties:
lowHealthThreshold - Health level that triggers totem equipping (default: 10)offhandSlot - Off-hand inventory slot (default: 45)Methods:
start() - Begins health monitoring and auto-equippinghandleAutoTotem() - Checks health and triggers totem equippingequipTotem() - Equips totem to off-handfindTotemInInventory() - Searches for totem in inventoryConstructor: new BotDeath(bot)
Methods:
getKillerWeapon(killer) - Gets the weapon used by a killersetupDeathHandler() - Sets up death event listenerDeath Log Format:
[MM/DD/YYYY, HH:MM:SS AM/PM] The bot has died at [timestamp] at location: X: 100, Y: 64, Z: -200. Killed by player: Steve using diamond_sword.
const food = new Food(bot);
food.foodList = [
'minecraft:golden_apple',
'minecraft:cooked_porkchop',
'minecraft:steak'
];
const autoTotem = new AutoTotem(bot);
autoTotem.lowHealthThreshold = 14; // Equip at 7 hearts
autoTotem.start();
death.txt - Contains timestamped death logs with location and killer informationMIT
FAQs
A utility package for Mineflayer bots, including automatic eating and totem handling.
The npm package mineflayer-utility-bot receives a total of 20 weekly downloads. As such, mineflayer-utility-bot popularity was classified as not popular.
We found that mineflayer-utility-bot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.