var bloodhoundPlugin = require('mineflayer-bloodhound');
const bot = mineflayer.createBot({
host: process.argv[2],
port: parseInt(process.argv[3]),
username: process.argv[4],
respawn: false
});
bloodhoundPlugin(bot);
if (bot.bloodhound) {
bot.bloodhound.yaw_correlation_enabled = true;
} else {
console.error('Bloodhound plugin did not initialize correctly.');
}
It always returns the error message, I could not find a way to load it properly
var bloodhoundPlugin = require('mineflayer-bloodhound');
const bot = mineflayer.createBot({
host: process.argv[2],
port: parseInt(process.argv[3]),
username: process.argv[4],
respawn: false
});
bloodhoundPlugin(bot);
if (bot.bloodhound) {
bot.bloodhound.yaw_correlation_enabled = true;
} else {
console.error('Bloodhound plugin did not initialize correctly.');
}
It always returns the error message, I could not find a way to load it properly