mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
AutoAttack: Add setting for attack range
This commit is contained in:
parent
7d3512ef87
commit
640abd2d78
3 changed files with 247 additions and 229 deletions
|
|
@ -32,6 +32,9 @@ namespace MinecraftClient.ChatBots
|
|||
[TomlInlineComment("$ChatBot.AutoAttack.Interaction$")]
|
||||
public InteractType Interaction = InteractType.Attack;
|
||||
|
||||
[TomlInlineComment("$ChatBot.AutoAttack.Attack_Range$")]
|
||||
public int Attack_Range = 4;
|
||||
|
||||
[TomlInlineComment("$ChatBot.AutoAttack.Attack_Hostile$")]
|
||||
public bool Attack_Hostile = true;
|
||||
|
||||
|
|
@ -107,6 +110,9 @@ namespace MinecraftClient.ChatBots
|
|||
|
||||
attackHostile = Config.Attack_Hostile;
|
||||
attackPassive = Config.Attack_Passive;
|
||||
attackRange = Config.Attack_Range;
|
||||
if (attackRange < 1) attackRange = 1;
|
||||
if (attackRange > 4) attackRange = 4;
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue