Description
# SummonAI — Mod Summary
**Minecraft 1.20.1 | Forge 47.4.20 | Mine and Slash Addon**
---
## Overview
SummonAI is a lightweight Forge mod that overhauls the combat behavior of summoned minions in **Mine and Slash**. By default, summons stand idle during combat unless an enemy walks directly into their aggro radius. SummonAI replaces that passive behavior with an aggressive, reactive AI that keeps your minions fighting alongside you at all times.
---
## The Problem
Mine and Slash summons — wolves, skeletons, zombies, golems, spiders — follow the player but react slowly to combat. If the player attacks an enemy, the summons don't respond. If the player gets hit, the summons don't respond. They only engage when the enemy is close enough to trigger their own aggro radius, which often means they stand watching while the player fights alone.
---
## How It Works
SummonAI listens for three combat events and reacts instantly:
- **Player attacks a mob** → all nearby summons immediately target that mob
- **Player is attacked** → all nearby summons immediately target the attacker
- **A summon is attacked** → all summons immediately target the attacker
All summons within 30 blocks of the player are commanded simultaneously, so your entire army responds as one unit.
### Supported Summons
All entities from Mine and Slash that extend `SummonEntity`:
- Spirit Wolf
- Zombie Summon
- Skeleton Summon
- Spider Pet
- Fire Golem, Cold Golem, Lightning Golem
---
## Technical Notes
SummonAI identifies Mine and Slash summons via reflection on the `SummonEntity` class, requiring no hard dependency on the mod. If Mine and Slash is not present, the mod does nothing and loads cleanly. Target assignment is done through the standard Forge `Mob.setTarget()` method, which is compatible with Mine and Slash's own AI goal system.
---
## Credits
**Concept, design, and testing:** Morkerod
**Code architecture and implementation:** Claude (Anthropic) — the full mod was designed and coded by Claude in a single guided session based on Morkerod's vision. Morkerod identified the problem, defined the desired behavior, and validated the result in-game. Claude handled all reverse engineering of the Mine and Slash jar and wrote every line of Java.
---
*Built for a private Minecraft server running Mine and Slash, Ice and Fire, and related addons.*


