New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolves issue #6 #3690
base: master
Are you sure you want to change the base?
resolves issue #6 #3690
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of now MovementParkour
, MovementAscend
, MovementDescend
and MovementFall
would walk on magma (because it's canWalkOn
now) without pressing shift. Additionally MovementParkour
might break when jumping from magma because the damage can prevent the jump. It shouldn't attempt to jump from magma, onto magma is fine as long as no damage is taken.
src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementTraverse.java
Outdated
Show resolved
Hide resolved
should i check if the player wears boots with frost walker enchantment? those also prevent damage from magma blocks without sneaking. if so should i allow pathfinding over magma allways or only when |
src/main/java/baritone/pathing/movement/movements/MovementParkour.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementTraverse.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementDescend.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementParkour.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementTraverse.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementTraverse.java
Outdated
Show resolved
Hide resolved
src/main/java/baritone/pathing/movement/movements/MovementTraverse.java
Outdated
Show resolved
Hide resolved
I'd say just treat magma as a harmless solid block without asking (or add yet another setting for it). |
i understand this that i should remove the allowSneakOverMagma setting and allways allow pathfinding over magma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO-list:
- javadoc for
isOverMagma()
- javadoc for
hasFrostwalker()
- adjust jump timing when sneak ascending
- sneak when breaking a block while standing on magma
- evaluate optimization potential of costcalculation in
MovementDiagonal
Oh, sorry, that's my comment editing gone wrong. I originally intended to write something along the lines of "I'd say just use the boots without asking (or make it yet another setting)", but obviously I reworded that beyond repair. As for "allowSneakOverMagma": I personally don't care. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To sneak while breaking blocks, Movement.prepared
might be the right place.
src/main/java/baritone/pathing/movement/movements/MovementDiagonal.java
Outdated
Show resolved
Hide resolved
Autoformatting caused quite a bunch of unrelated changes but ok. It mostly sneaks way to much and not at all after parkour jumps onto magma. 2022-10-30.11-02-13.mp4Do you think you could make it more like this (but without sneaking too little)? 2022-10-30.11-21-36.mp4 |
it took me more then 2 mins and also more then 5 lines of code.