diff --git a/src/main/java/baritone/command/defaults/DefaultCommands.java b/src/main/java/baritone/command/defaults/DefaultCommands.java index 67555ed5..a08ff0ff 100644 --- a/src/main/java/baritone/command/defaults/DefaultCommands.java +++ b/src/main/java/baritone/command/defaults/DefaultCommands.java @@ -63,7 +63,7 @@ public final class DefaultCommands { new ThisWayCommand(baritone), new WaypointsCommand(baritone), new CommandAlias(baritone, "sethome", "Sets your home waypoint", "waypoints save home"), - new CommandAlias(baritone, "home", "Set goal to your home waypoint", "waypoints goal home"), + new CommandAlias(baritone, "home", "Path to your home waypoint", "waypoints goto home"), new SelCommand(baritone) )); ExecutionControlCommands prc = new ExecutionControlCommands(baritone); diff --git a/src/main/java/baritone/command/defaults/WaypointsCommand.java b/src/main/java/baritone/command/defaults/WaypointsCommand.java index 62c74212..67aad365 100644 --- a/src/main/java/baritone/command/defaults/WaypointsCommand.java +++ b/src/main/java/baritone/command/defaults/WaypointsCommand.java @@ -235,6 +235,10 @@ public class WaypointsCommand extends Command { Goal goal = new GoalBlock(waypoint.getLocation()); baritone.getCustomGoalProcess().setGoal(goal); logDirect(String.format("Goal: %s", goal)); + } else if (action == Action.GOTO) { + Goal goal = new GoalBlock(waypoint.getLocation()); + baritone.getCustomGoalProcess().setGoalAndPath(goal); + logDirect(String.format("Going to: %s", goal)); } } } @@ -292,7 +296,8 @@ public class WaypointsCommand extends Command { "> wp - Save the waypoint with the specified name and position.", "> wp - Show info on a waypoint by tag.", "> wp - Delete a waypoint by tag.", - "> wp - Set a goal to a waypoint by tag." + "> wp - Set a goal to a waypoint by tag.", + "> wp - Set a goal to a waypoint by tag and start pathing." ); } @@ -302,7 +307,8 @@ public class WaypointsCommand extends Command { SAVE("save", "s"), INFO("info", "show", "i"), DELETE("delete", "d"), - GOAL("goal", "goto", "g"); + GOAL("goal", "g"), + GOTO("goto"); private final String[] names; Action(String... names) {