build with pathfinder

This commit is contained in:
Leijurv
2023-06-15 20:59:08 -07:00
parent a9e9cd978d
commit e01093eb9a
4 changed files with 31 additions and 18 deletions

View File

@@ -45,6 +45,8 @@ public class Elytra extends Behavior implements Helper {
public List<BetterBlockPos> path = new ArrayList<>();
public void path(BlockPos destination) {
playerNear = 0;
goingTo = 0;
path = Arrays.stream(NetherPathfinder.pathFind(146008555100680L, false, false, ctx.playerFeet().x, ctx.playerFeet().y, ctx.playerFeet().z, destination.getX(), destination.getY(), destination.getZ())).mapToObj(BlockPos::fromLong).map(BetterBlockPos::new).collect(Collectors.toList());
removeBacktracks();
}