Try to give a larger range and more freedom to see if other values work.
Specifically, attempt turning.
No test on vehicles or mobs appear to behave consistently so far.
Tried: pigs, minecarts, horse.
Now does the following:
- finds entities (both vehicles and animals) which are suitable for riding.
- moves to get into range.
However:
- while in a vehicle, pathfinder doesn't appear to detec coords.
- `bot.moveVehicle` doesn't work, so bot doesn't move when riding
Move the following:
- vehicle commands next to other movement related commands like `go`.
- move `ride` / `mount` command functionality into mover plugin
This reduces the code inside the command plugin.
Most of the logic was only relevant to moving anyway.
Command aliases like `come` and `follow` still remain in command plugin.
Refactoring and fixing code.
No major functionality change.
Probably will have less bugs.
- carry over how mcData is loaded
- stop bot on unload
- fix wrong magma block name
General purpose mover / goto plugin.
Replaces the old solver based `comehere` in miner.js.
Instead, directly based on mineflayer bot apis and pathfinder.
This makes it simpler and easier to debug.
While less general, pathfinder is sophisticated enough for most cases.
For anything that needs moving from point A to point B.
Such as:
- following
- go to a location
Not in scope: locations and places. Would be a separate plugin.