Skip to content

Add an optional direction change penalty to the A* calculation#264

Open
IceTank wants to merge 1 commit intorfresh2:1.21.4from
IceTank:baritone-change-direction-penalty
Open

Add an optional direction change penalty to the A* calculation#264
IceTank wants to merge 1 commit intorfresh2:1.21.4from
IceTank:baritone-change-direction-penalty

Conversation

@IceTank
Copy link

@IceTank IceTank commented Mar 2, 2026

This change adds additional penalties to changing directions while pathing.
A direction change penalty is useful when you want to mine in instant minable blocks. Baritone is significantly faster when it can sprint while mining. Diagonal tunnels prevent sprint mining, as the bot is slowed down by bumping into the diagonal tunnel walls. Choosing primarily straight tunnels thus increases mining speed.
Even a small amount of penalty, like 0.1, will result in generally straight tunnels while not impacting open terrain travel in a noticeable way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant