From 16e384ca764d42dc328cc1ced7d0c4f5070ae238 Mon Sep 17 00:00:00 2001 From: GenerelSchwerz Date: Mon, 15 Apr 2024 22:31:35 -0400 Subject: [PATCH] cancel on sneaking feature & update readme --- README.md | 30 ++++++++++++++++++++++-------- src/utils.ts | 2 ++ src/wrapper.ts | 8 ++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 12d8dd0..96cdc8f 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,11 @@ Returns if the bot should jump (if we do not jump right now, there will be an is 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`. @@ -70,6 +75,10 @@ If the bot should minimize fall damage. Similar to maxBlockOffset set to 3 excep 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', () => {})` @@ -80,16 +89,10 @@ Emitted when the bot should jump.