Описание

## Features
- **Player-Like Spell Casting**: Mobs cast spells with animations, cooldowns, and mana management, just like players
- **Automatic Ability Detection**: Mobs with spell-casting items automatically gain casting abilities on spawn
- **Two Wizard Types**:
- Pure Wizard: Magic only, maintains distance, strafes
- Battle Wizard: Melee + magic hybrid
- **Spell Categorization**: ATTACK, DEFENSE, MOVEMENT, SUPPORT, SUMMON
- **Wizard Presets**: Pre-configured loadouts spawn automatically (Pumpkin Mage, Crimson Wizard, Plague Warrior, Shadow Warrior, Frost Warrior, Frost Mage)
## Wizard Types
### Pure Wizard
- Uses magic only
- Maintains 20 block casting distance
- Strafes around target
- Flees when enemies get too close
- Intelligent spell selection based on situation
**Requirements:**
- Item with spells (staff or spellbook)
- No melee weapon (or weapon is staff/spellbook)
### Battle Wizard
- Hybrid melee + magic combat
- Switches between melee and spells strategically
- Uses spells to enhance melee combat
**Requirements:**
- Non-magical melee weapon (sword, axe, etc.) in mainhand - weapon must NOT have staff/spellbook tags
- Spellbook with spells in Curios/Accessories slot OR weapon with spell capability
- Battle Wizard enabled in config
## Configuration
Fully customizable via `config/mobbility/irons_spellbooks.toml`:
Wizard AI Settings
```toml
[wizard]
speedModifier = 1.0
attackIntervalMin = 10
attackIntervalMax = 30
spellQualityMin = 0.1
spellQualityMax = 0.4
useCooldowns = true
useMana = true
```
Battle Wizard Settings
```toml
[battleWizard]
enabled = true
staffTags = ["wizards:wands", "irons_spellbooks:staff", "wizards:staves", "paladins:staves"]
spellbookTags = ["irons_spellbooks:staff", "curios:spellbook"]
meleeBiasMin = 0.4
meleeBiasMax = 0.8
lowManaThreshold = 0.3
lowManaBonus = 0.3
meleeImmobilized = true
immobilizedMeleeBias = 0.95
```
Wizard Presets
```toml
[wizardPresets]
enabled = true
# Presets for Zombie, Skeleton, Stray (Pumpkin Mage, Crimson Wizard, Plague Warrior, Shadow Warrior, Frost Warrior, Frost Mage)
```
## Requirements
- **Minecraft**: 1.20.1
- **Forge**: 1.20.1-47.4.10+
- **Mobbility [Core]**: Required core mod (Forge version)
- **Iron's Spells 'n Spellbooks**: The spell mod this addon integrates with
- **Fzzy Config**: For configuration