mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
AuotoAttack: add support for multiple interact modes (#2044)
* Adds support for multiple interact modes * Entity interaction: Implement enum Co-authored-by: ORelio <ORelio@users.noreply.github.com>
This commit is contained in:
parent
fd7f79402f
commit
613f52d3ae
8 changed files with 116 additions and 80 deletions
|
|
@ -6,6 +6,7 @@ using System.IO;
|
|||
using System.Text.RegularExpressions;
|
||||
using MinecraftClient.Protocol.Session;
|
||||
using MinecraftClient.Protocol;
|
||||
using MinecraftClient.Mapping;
|
||||
|
||||
namespace MinecraftClient
|
||||
{
|
||||
|
|
@ -192,6 +193,7 @@ namespace MinecraftClient
|
|||
public static string AutoAttack_Priority = "distance";
|
||||
public static bool AutoAttack_OverrideAttackSpeed = false;
|
||||
public static double AutoAttack_CooldownSeconds = 1;
|
||||
public static InteractType AutoAttack_Interaction = InteractType.Attack;
|
||||
|
||||
//Auto Fishing
|
||||
public static bool AutoFishing_Enabled = false;
|
||||
|
|
@ -693,6 +695,8 @@ namespace MinecraftClient
|
|||
AutoAttack_CooldownSeconds = str2float(argValue);
|
||||
}
|
||||
return true;
|
||||
case "interaction":
|
||||
return Enum.TryParse(argValue, true, out AutoAttack_Interaction);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue