mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
add attackWhileBreaking
to AimAssist
This commit is contained in:
parent
10eaff7369
commit
1a31f98332
@ -37,6 +37,10 @@ public final class TriggerBotHack extends Hack implements UpdateListener
|
||||
"Whether or not to attack while blocking with a shield / using items.",
|
||||
false);
|
||||
|
||||
private final CheckboxSetting attackWhileBreaking =
|
||||
new CheckboxSetting("Attack while breaking",
|
||||
"Whether or not to attack while breaking blocks.", false);
|
||||
|
||||
private final EntityFilterList entityFilters =
|
||||
EntityFilterList.genericCombat();
|
||||
|
||||
@ -48,6 +52,7 @@ public final class TriggerBotHack extends Hack implements UpdateListener
|
||||
addSetting(range);
|
||||
addSetting(speed);
|
||||
addSetting(attackWhileBlocking);
|
||||
addSetting(attackWhileBreaking);
|
||||
|
||||
entityFilters.forEach(this::addSetting);
|
||||
}
|
||||
@ -90,6 +95,10 @@ public final class TriggerBotHack extends Hack implements UpdateListener
|
||||
if(player.isUsingItem() && !attackWhileBlocking.isChecked())
|
||||
return;
|
||||
|
||||
if(MC.interactionManager.isBreakingBlock()
|
||||
&& !attackWhileBreaking.isChecked())
|
||||
return;
|
||||
|
||||
if(MC.crosshairTarget == null
|
||||
|| !(MC.crosshairTarget instanceof EntityHitResult))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user