Auto attack
Configure targeting ranges, cooldowns, protected players, and wall checks for combat tests.
Diese Anleitung gibt es nur auf Englisch.
What this is for
Auto attack makes a bot look at and attack the closest target in range.
Use it for combat tests, PvP experiments, and entity targeting under load.
Releases up to 2.10.7 call this feature Kill Aura or KillAura. The plugin ID stays kill-aura.
A target is any attackable entity, including mobs and players.
The plugin skips players in creative or spectator mode, players in whitelisted-users, and bots of the same project.
It controls only looking, swinging, and attacking. It does not move the bot.
Set whitelisted-users before you test near real players.
Every other player in range is a target.
Settings
| Setting | Default | What it controls |
|---|---|---|
whitelisted-users | Empty | Player names that the bot never attacks. Case does not matter. |
look-range | 4.8 | Distance at which the bot turns toward a target |
swing-range | 3.5 | Distance at which the bot swings its arm. 0 turns off swings without a hit. |
hit-range | 3.0 | Distance at which the bot attacks |
check-walls | On | Picks only targets that have a visible point |
ignore-cooldown | Off | Ignores the attack cooldown of Minecraft 1.9 and later |
attack-delay-ticks | 8 to 12 | Random delay between attacks, used only on 1.8 and older or with ignore-cooldown on |
Keep look-range the largest and hit-range the smallest.
hit-range cannot extend the bot's reach.
Vanilla reach and crosshair targeting still limit each attack, and SoulFire caps the range at 2.65 blocks while the bot moves.
check-walls affects target selection only.
With it off, the bot can turn toward a target behind a wall, but it still cannot hit through the wall.
Enable Auto attack
Enable the plugin
Open Plugins and enable Auto attack.
Protect players
Add every player name that the bot must not attack to whitelisted-users.
Test with one bot
Keep the default ranges and check-walls on.
Check targeting and attack timing with one bot.
Then change one setting at a time.
Common failure patterns
| Symptom | Fix |
|---|---|
| The bot looks at targets but does not hit | Increase hit-range, or wait for the attack cooldown. A moving bot hits only within 2.65 blocks. |
| The bot swings before it can hit | Decrease swing-range |
| The bot turns toward targets that it cannot see | Turn on check-walls, then decrease look-range |
| The bot attacks a protected player | Check the spelling in whitelisted-users |
| The bot ignores a player | The player is in creative or spectator mode, is whitelisted, or is a bot of the same project |
Related pages
Zuletzt aktualisiert am
War diese Seite hilfreich?
