Rocco A
Rocco A
A slight update: This could be easily resolved if there was an option to specify the boundary of each part manually. I'm not sure if I should open a pull...
Agreed. Manually setting the control state of the bot to sprint jump when traveling in a straight path results in the pathfinder being much less efficient.
Addresses #173
Note: prismarine-* and vec3 dependencies were also moved since only their types are used; they are never instantiated. Since mineflayer also updates these libraries, statemachine should follow the provided version...
I've also decided to remove minecraft-data as a dependency and switch to prismarine-registry, again as a devDependency. The previously loaded mcData now requires on bot.registry from prismarine-registry.
New PR fails, older one works. Fixing now. > To clarifay, if the user want to use "behaviorMoveTo" need to install manually pathfinder & minecrafr-data & mineflayer? > > https://github.com/PrismarineJS/mineflayer-statemachine/blob/836c8693d9bf9ba66d5c07046b08debe416a0789/src/behaviors/behaviorMoveTo.ts#L4...
I will open a new PR for my more significant changes. I will revert this branch to just the dependency changes.
I did some looking into this and entities are updated via rel_entity_move, which provides the positional data and not velocity iirc.
> > entities are updated via rel_entity_move, which provides the positional data and not velocity > And also stable api does not fire any event in this case so it's...
> > exposed "entityMoved" that would allow you to calculate the velocity differential. However, I recall attempting to do what you are trying to do; this event fires every 100ms,...