0.7.7 • Published 26 days ago

@nxg-org/mineflayer-auto-jump v0.7.7

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
26 days ago

mineflayer-auto-jump

Installation

npm install mineflayer-auto-jump

Usage

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!

API

autoJump.enable()

Enable auto jump

autoJump.disable()

Disable auto jump

autoJump.shouldJump()

Returns if the bot should jump (if we do not jump right now, there will be an issue).

autoJump.canJump()

Returns if the bot is allowed to jump (no jump needed, but no detriment to jumping right now).

autoJump.strictBlockCollision: boolean

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.

autoJump.jumpOnAllEdges: boolean

If the bot should jump on all edges. This is mainly used for descending slopes, combined with maxBlockOffset.

autoJump.jumpIntoWater: boolean

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.

autoJump.maxBlockOffset: number

The maximum block offset for the bot to consider jumping. It works as current Y - maxBlockOffset as the threshold for jumping.

autoJump.minimizeFallDmg: boolean

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).

autoJump.debug: boolean

If the bot should debug the jump checker. Your console will be spammed. Just report the information to me.

autoJump.cancelOnShift: boolean

If the bot should cancel the jump if the player is holding shift. Useful for sneaking.

Events

autoJump.on('shouldJump', () => {})

Emitted when the bot should jump.

0.7.7

26 days ago

0.7.6

27 days ago

0.7.5

27 days ago

0.7.4

27 days ago

0.7.3

27 days ago

0.7.2

29 days ago

0.7.1

29 days ago

0.7.0

29 days ago

0.6.6

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago