diff --git a/src/main/java/baritone/bot/pathing/action/ActionState.java b/src/main/java/baritone/bot/pathing/action/ActionState.java
index 03abd4ff..207770cd 100644
--- a/src/main/java/baritone/bot/pathing/action/ActionState.java
+++ b/src/main/java/baritone/bot/pathing/action/ActionState.java
@@ -28,14 +28,14 @@ public class ActionState {
*
* TODO: Decide desiredMovement type
*/
- protected BlockPos position;
+ public BlockPos position;
/**
* Yaw and pitch angles that must be matched
*
* getFirst() -> YAW
* getSecond() -> PITCH
*/
- protected Tuple rotation;
+ public Tuple rotation;
public ActionGoal(BlockPos position, Tuple rotation) {
this.position = position;
diff --git a/src/main/java/baritone/bot/pathing/action/actions/ActionAscend.java b/src/main/java/baritone/bot/pathing/action/actions/ActionAscend.java
index b44e1478..61e893db 100644
--- a/src/main/java/baritone/bot/pathing/action/actions/ActionAscend.java
+++ b/src/main/java/baritone/bot/pathing/action/actions/ActionAscend.java
@@ -1,17 +1,22 @@
package baritone.bot.pathing.action.actions;
+import baritone.bot.InputOverrideHandler;
import baritone.bot.pathing.action.Action;
import baritone.bot.pathing.action.ActionState;
import net.minecraft.util.math.BlockPos;
public class ActionAscend extends Action {
- ActionAscend(BlockPos dest) {
+ public ActionAscend(BlockPos dest) {
super(dest);
}
@Override
public ActionState calcState() {
- return null;
+ ActionState latestState = currentState.setInput(InputOverrideHandler.Input.JUMP,true).setInput(InputOverrideHandler.Input.MOVE_FORWARD, true);
+ if(player.getPosition().equals(latestState.getGoal().position))
+ latestState.setStatus(ActionState.ActionStatus.SUCCESS);
+ return latestState;
}
+
}