You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a behavior that the bot often gets "dead set" on a certain path and won't deviate from it, even if it's impossible
I set up an example where this happens: bot.pathfinder.setGoal(new GoalGetToBlock(-9999, 255, 9999))
Placing the bot at Y 255, far away from the goal and above a body of water makes it head directly for the goal, but reach a dead end, even though it has the option of going back, jumping in the water, and then traversing the world below.
I would expect it to find the second best path in this case
The text was updated successfully, but these errors were encountered:
When the goal is unreachable the bot default to the closest position it can get to. The goal you set is at Y=255, if it doesn't have blocks to go up why would it drop to sea level ? If the goal is to get to a position out of the view distance, try to use a XZ goal first to get closer then use an exact GoalGetToBlock when the position is in view.
The bot is already exploring all the possible paths, it just decided that this position was the best according to what you asked him.
Ah ok, I was thinking it'd behave similar to Baritone, where if the best position doesn't get to the goal, it tries alternative routes, even if it has to change Y levels in the process.
Setting an XZ goal and then a full Block goal seemed to do the trick, thank you!
I've noticed a behavior that the bot often gets "dead set" on a certain path and won't deviate from it, even if it's impossible
I set up an example where this happens:
bot.pathfinder.setGoal(new GoalGetToBlock(-9999, 255, 9999))
Placing the bot at Y 255, far away from the goal and above a body of water makes it head directly for the goal, but reach a dead end, even though it has the option of going back, jumping in the water, and then traversing the world below.
I would expect it to find the second best path in this case
The text was updated successfully, but these errors were encountered: