npm install mineflayer-auto-jump
const mineflayer = require('mineflayer')
const {loader: autoJump} = require('@nxg-org/mineflayer-auto-jump')
const bot = mineflayer.createBot({
host: 'localhost',
port: 25565,
username: 'player'
})
bot.loadPlugin(autoJump)
bot.autoJump.enable() // it will now auto jump!
Enable auto jump
Disable auto jump
Returns if the bot should jump (if we do not jump right now, there will be an issue).
Returns if the bot is allowed to jump (no jump needed, but no detriment to jumping right now).
If true, only jump if the bot is colliding with a block ABOVE current walking level. If false, the bot will jump if it is colliding with a block at all.
If the bot should jump on all edges. This is mainly used for descending slopes, combined with maxBlockOffset
.
If the bot should jump into water. Useful if you want to save time when falling into water instead of just falling off of a block.
The maximum block offset for the bot to consider jumping. It works as current Y
- maxBlockOffset
as the threshold for jumping.
If the bot should minimize fall damage. Similar to maxBlockOffset set to 3 except also takes into account water falling (allows for a bit more leniency).
If the bot should debug the jump checker. Your console will be spammed. Just report the information to me.
If the bot should cancel the jump if the player is holding shift. Useful for sneaking.
Emitted when the bot should jump.