cabaletta / cabaletta/baritone
Low TPS will cause Baritone to become stuck inside of a glitched block occasionally
- Dominant language
- Java
- Stars
- 9.2k
- Forks
- 2.1k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 3
Description
It should be noted that this issue really only affects servers like 2B2T or a low-FPS singleplayer world. However, it is still an issue, even if it is an edge case.
Sometimes when mining with high-efficiency tools, Baritone will get stuck inside of a block that it thinks it mined, but the server disagrees. This causes an infinite loop of recalculations so that the user has to manually cancel pathing and either break themselves out or reconnect to the server or world. Since this is mainly an issue with Minecraft and not Baritone's pathfinding, I would suggest simply stopping path recalculations when Baritone has tried and failed to move itself forward around 3 or so times.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing mining on a low-TPS server or low-FPS singleplayer world with a high-efficiency tool, then trace the path-recalculation loop triggered when Baritone believes a block was mined but movement fails. Done means repeated failed movement attempts stop recalculating indefinitely and the user is no longer left stuck inside the block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100