# Buff Mobs Version 2.5.2 (Minecraft 1.21.1)
### 🎯 Major Features
#### Mob Preset System
* **Custom preset configurations** for specific mobs with fine-tuned stats
* **5 preset slots** available: default, boss, elite, weak, and custom
* Presets now **stack with base multipliers and dimension scaling**
* Allows precise balancing without losing your base configuration
* Easy mob mapping: `minecraft:zombie:weak` format
* Toggle presets via dropdown menu (similar to behavior mode)
#### Ranged/Melee Combat System
* **Tactical Retreat Mode**: Ranged mobs intelligently retreat while maintaining distance
* No melee attacks during retreat (pure ranged combat)
* Configurable retreat speed and distance
* **Melee Switch Mode**: Ranged mobs switch to melee weapons when players get close
* Progressive weapon tiers unlock based on world days
* Enchantment system scales with game progression
* **Random Mode**: Each mob randomly chooses between melee or retreat behavior
#### Day-Based Progression
* Mobs become progressively stronger as days pass
* Configurable intervals and maximum multipliers
* In-game notifications for scaling milestones
* Affects all mob stats including preset configurations
### 🛠️ Technical Improvements
#### Configuration System
* **Full compatibility** with Configured mod (no more validation errors)
* Simplified configuration structure with enum toggles
* Lists properly persist when toggling settings on/off
* Fixed range validation issues (now supports values < 1.0 for weak presets)
#### Mob Detection & Targeting
* Uses official Minecraft ResourceLocation registry for mob identification
* Fixed entity ID format issues
* Improved mob type validation and filtering
#### Performance & Stability
* Optimized mob initialization system
* Better handling of mob spawning and despawning
* Reduced unnecessary buff recalculations
* Fixed memory leaks in mob state tracking
### 🎮 Gameplay Changes
#### Status Effects
* Status effects (Strength, Resistance, Regeneration) **always apply** regardless of preset
* Infinite duration effects properly refresh
* Visual particles can be toggled for performance
#### Dimension Scaling
* Dimension-specific multipliers now properly combine with presets
* Fixed calculation order: Base → Preset → Dimension → Day Scaling
* Supports custom dimensions from mods
#### Harmful Effects on Players
* Mobs can inflict random debuffs (Poison, Slowness, Wither)
* Configurable chance per hit (default: 15%)
* Adjustable duration for each effect type
### 🐛 Bug Fixes
* Fixed preset system not applying base multipliers
* Fixed dimension scaling being ignored when using presets
* Fixed config validation errors with Configured mod
* Fixed mob ID format in debug commands showing incorrect format
* Fixed list configurations being cleared when toggling settings
* Fixed range validation preventing values below 1.0
* Fixed retreat mode mobs dealing melee damage when approached
* Fixed attribute modifiers not using correct operation types
* Fixed enchantment application system for 1.21.1 API changes
### 📊 Debug & Commands
* `/buffmobs debug` - Show detailed info about nearby mob
* `/buffmobs presets` - List all configured presets and mappings
* `/buffmobs testpreset` - Validate preset configuration
* `/buffmobs info` - Display current mod settings
* `/buffmobs reload` - Reapply buffs to all loaded mobs
### 🔧 Configuration Guide
**Example Preset Setup:**
```toml
[mobPresets]
enabled = "ENABLED"
mobMapping = [
"minecraft:zombie:weak",
"minecraft:skeleton:elite",
"minecraft:ender_dragon:boss"
]
[mobPresets.preset4]
presetName = "weak"
healthMultiplier = 0.5
damageMultiplier = 0.5
speedMultiplier = 0.9
```
**Behavior Modes:**
* `MELEE` - Switch to melee weapons when close
* `RETREAT` - Back away while shooting
* `RANDOM` - Random choice per mob
### 📝 Notes
* All base game mechanics preserved
* Compatible with most mob-adding mods
* Default configurations provide balanced difficulty increase
***
**Report Issues:** [GitHub Issues](https://github.com/khotyz/buffmobs/issues)
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }