Skip to content

Commit

Permalink
Added travel using an elytra feature, the RepairToolTask and some edi…
Browse files Browse the repository at this point in the history
…ts around that

gaucho-matrero#194
  • Loading branch information
awesomecat2011 authored Jun 24, 2022
1 parent 3d10307 commit c8abea5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/adris/altoclef/BotBehaviour.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@ public void setAllowWalkThroughFlowingWater(boolean value) {
current().applyState();
}

//Way of disabling MLG and defense from a task
public boolean isDefenseDisabled() {
return current().disableDefence;
}


public void disableDefence(boolean value) {
current().disableDefence = value;
current().applyState();
}


public void setPauseOnLostFocus(boolean pauseOnLostFocus) {
current().pauseOnLostFocus = pauseOnLostFocus;
current().applyState();
Expand Down Expand Up @@ -263,6 +275,8 @@ class State {
// Alto Clef params
public boolean exclusivelyMineLogs;
public boolean forceFieldPlayers;

public boolean disableDefence;
public List<Predicate<Entity>> avoidDodgingProjectile = new ArrayList<>();
public List<Predicate<Entity>> excludeFromForceField = new ArrayList<>();
public List<Pair<Slot, Predicate<ItemStack>>> conversionSlots = new ArrayList<>();
Expand Down Expand Up @@ -306,6 +320,7 @@ public State(State toCopy) {
conversionSlots.addAll(toCopy.conversionSlots);
forceFieldPlayers = toCopy.forceFieldPlayers;
escapeLava = toCopy.escapeLava;
disableDefence = toCopy.disableDefence;
}
}

Expand Down

0 comments on commit c8abea5

Please sign in to comment.