Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

How to i can make this follow target

Halqq opened this issue ยท 1 comments

commented

How do I make my baritone follow a target in an onUpdate method (which checks every frame)?

Final checklist

  • I know how to properly use check boxes
  • I have not used any OwO's or UwU's in this issue.
commented

you need to explain a little more. i have no clue what a "onUpdate" method is.

to follow a entity you have to set the private Predicate<Entity> filter; field in the followprocess by calling the FollowProcess .follow() method.

to my knowlage the goals get updated each tick in the .onTick() method which injects in to minecrafts onTick method, which is called 20 times a second.