mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
70e5ae85d7
commit
2e1e79bcef
10 changed files with 128 additions and 11 deletions
|
|
@ -32,20 +32,23 @@ namespace MinecraftClient.ChatBots
|
|||
|
||||
public override void Update()
|
||||
{
|
||||
if (attackCooldownCounter == 0)
|
||||
if (!GetIsEating())
|
||||
{
|
||||
attackCooldownCounter = attackCooldown;
|
||||
if (entitiesToAttack.Count > 0)
|
||||
if (attackCooldownCounter == 0)
|
||||
{
|
||||
foreach (KeyValuePair<int, Entity> a in entitiesToAttack)
|
||||
attackCooldownCounter = attackCooldown;
|
||||
if (entitiesToAttack.Count > 0)
|
||||
{
|
||||
InteractEntity(a.Key, 1);
|
||||
foreach (KeyValuePair<int, Entity> a in entitiesToAttack)
|
||||
{
|
||||
InteractEntity(a.Key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
attackCooldownCounter--;
|
||||
else
|
||||
{
|
||||
attackCooldownCounter--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue