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
How do I make the robot not execute the following code until it gets to its destination, and then execute the following code when the robot stops performing the motion?
The text was updated successfully, but these errors were encountered:
const{ once }=require('events');...// your codebot.pathfinder.setMovements(defaultMove);bot.pathfinder.setGoal(newGoalBlock(x,y,z));awaitonce(bot,'goal_reached');// your following code
I recommend using bot.pathfinder.goto() instead of setGoal(). It contains the once inside of it already, plus it comes for support for stuff like throwing an error when there's no path found and all that.
How do I make the robot not execute the following code until it gets to its destination, and then execute the following code when the robot stops performing the motion?
The text was updated successfully, but these errors were encountered: