0
0
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:
Tejas Lamba 2024-02-06 23:28:14 +05:30 committed by GitHub
parent 10eaff7369
commit 1a31f98332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;