Updated the AutoAttack Chat Bot settings to include attacking passive mobs and players if enabled, and a blacklisted entities possibility.

This commit is contained in:
Milutinke 2022-09-27 13:35:29 +02:00
parent aec38d83c7
commit 58b171cec0
4 changed files with 112 additions and 5 deletions

View file

@ -204,6 +204,10 @@ namespace MinecraftClient
public static bool AutoAttack_OverrideAttackSpeed = false;
public static double AutoAttack_CooldownSeconds = 1;
public static InteractType AutoAttack_Interaction = InteractType.Attack;
public static bool AutoAttack_Attack_Hostile = true;
public static bool AutoAttack_Attack_Passive = false;
public static bool AutoAttack_Attack_Players = false;
public static string AutoAttack_Blacklist = "attack-blacklist.txt";
//Auto Fishing
public static bool AutoFishing_Enabled = false;
@ -727,6 +731,14 @@ namespace MinecraftClient
return true;
case "interaction":
return Enum.TryParse(argValue, true, out AutoAttack_Interaction);
case "attackhostile":
AutoAttack_Attack_Hostile = str2bool(argValue); return true;
case "attackpassive":
AutoAttack_Attack_Passive = str2bool(argValue); return true;
case "attackplayers":
AutoAttack_Attack_Players = str2bool(argValue); return true;
case "blacklist":
AutoAttack_Blacklist = argValue; return true;
}
break;