Class GetCloseToBlockTask

java.lang.Object
adris.altoclef.tasksystem.Task
adris.altoclef.tasks.movement.GetCloseToBlockTask

public class GetCloseToBlockTask extends Task
Approaching a block can be done easily with baritone but we have an issue: baritone requires that a goal be available.

For instance, say we want to approach the center of a lava pool. That's not possible, so say we expect the bot to get as close as it can. We have to specify the "radius", and this radius MUST be outside of the pool, else baritone will get stuck and won't even try getting close.

  • Constructor Details

    • GetCloseToBlockTask

      public GetCloseToBlockTask(net.minecraft.util.math.BlockPos toApproach)
  • Method Details