mineflayer-pathfinder
mineflayer-pathfinder copied to clipboard
Bot thinks it can travel diagonally when blocked by other blocks
The bot thinks it can use the block on the right (that is one block high) on the right to get to the block in front (that is two blocks high). The bot thinks it can travel diagonally, but it can't since it is surrounded by other blocks.
To reproduce: Put the bot in an enclosure as shown on the screen shot with clearance above the block on the right (that is one block high) and the block in front (that is two blocks high). Set parkour to false. Set the goal so that the bot's feet are on the block in front (that is two blocks high). This is tested in Minecraft 1.18.1.
Result: The bot infinitely jumps without finding an alternate path.
Possible Fix: Allow the user the option to disallow bot to jump and travel diagonally in the Movements class.
Edit: It happens mainly when the bot is mining in the Nether. Sometimes it gets stuck while other times it doesn't, so I think the bot is getting stuck on a block when it tries to jump and travel diagonally simultaneously.