# BuffMobs v2.4.10 - Compatibility Update
## 🎮 Minecraft Version Support
- ✅ **Minecraft 1.21.9 - 1.21.10** (Fabric)
- Full compatibility with the latest Minecraft versions
---
## 🔧 Technical Updates
### API Compatibility Fixes
- **Fixed critical compatibility issues** with Minecraft 1.21.9-1.21.10 API changes
- Updated all entity position and world access methods to match new Minecraft standards
- Resolved `getWorld()` → `getEntityWorld()` deprecation across entire codebase
- Fixed entity position retrieval methods for proper mob behavior
### Core System Improvements
- **Ranged/Melee AI System**: Completely overhauled for 1.21.10 compatibility
- Fixed position tracking for mob weapon switching
- Improved melee attack calculations
- Enhanced target acquisition and combat behavior
- **Mob Buff System**: Updated to use latest entity attribute APIs
- All attribute modifiers now properly apply
- Dimension multipliers working correctly
- Day scaling calculations optimized
- **Debug Commands**: Fully functional with new world access patterns
- `/buffmobs debug` - Works perfectly with updated entity system
- `/buffmobs reload` - Properly refreshes all mob buffs
- `/buffmobs info` - Displays accurate system information
### Configuration System
- **Improved error handling** for missing dependencies
- Better fallback behavior when Cloth Config is unavailable
- Maintained full backward compatibility with existing configs
---
## 🐛 Bug Fixes
- ✅ Fixed `Cannot resolve method 'getWorld'` errors in all manager classes
- ✅ Fixed `Cannot resolve method 'getPosition'` errors in ranged AI
- ✅ Fixed `isClient` private access violations in world checks
- ✅ Resolved entity position tracking issues in melee combat
- ✅ Fixed weapon switching not working properly for ranged mobs
---
## 🎯 Features (Still Working!)
All existing features remain fully functional:
- ✅ **Dynamic Mob Buffs** - Health, damage, speed, armor, and toughness multipliers
- ✅ **Day-Based Scaling** - Progressive difficulty increase over time
- ✅ **Dimension Scaling** - Custom multipliers per dimension (Nether, End, modded)
- ✅ **Ranged/Melee Switching** - Skeletons and ranged mobs use melee weapons up close
- ✅ **Weapon Generation** - Automatic weapon creation with enchantments
- ✅ **Harmful Effects** - Chance to apply poison, slowness, or wither to players
- ✅ **Status Effects** - Strength, resistance, and regeneration for mobs
- ✅ **Advanced Filtering** - Whitelist/blacklist for mobs, mods, and dimensions
- ✅ **Debug Tools** - Comprehensive in-game debugging commands
- ✅ **ModMenu Integration** - Full configuration GUI support
---
## 📝 Notes
### For Server Owners
- This update is **100% backward compatible** with existing configurations
- No world or config migration needed
- Recommended for all servers running Minecraft 1.21.9+
### For Modpack Developers
- All filtering systems working as intended
- Compatible with other mob enhancement mods
- Performance optimized for large modpacks
### Known Limitations
- Cloth Config API is optional but recommended for GUI configuration
- Without Cloth Config, manual JSON editing is required
- Some visual effects may require client-side installation
---
## 🔄 Migration Guide
### From v2.4.x to v2.4.10
1. Simply replace the mod file
2. No config changes needed
3. Restart server/client
4. All features will work immediately
### From v2.3.x or older
- Your existing `buffmobs.json5` config will be automatically preserved
- All settings will be migrated seamlessly
- Review new options in the config for additional features
---
## 🚀 Download
- **[CurseForge](https://www.curseforge.com/minecraft/mc-mods/buff-mobs/files)**
- **[Modrinth](https://modrinth.com/mod/buff-mobs/versions)**
- **[GitHub](https://github.com/Khotyz/BuffMobs/releases)**
---
## 💬 Support
Having issues? Need help?
- 📝 [Report bugs on GitHub](https://github.com/Khotyz/BuffMobs/issues)
- 📖 [Check the Wiki](https://github.com/Khotyz/BuffMobs/blob/master/HOW%20TO%20USE.MD)
---
## 🙏 Credits
Thanks to everyone who reported compatibility issues and helped test this release!
**Enjoy your enhanced survival experience!** 🎮⚔️
---
### Full Changelog
**v2.4.10 (October 2024)**
- Updated for Minecraft 1.21.9-1.21.10
- Fixed all API compatibility issues
- Improved code stability and error handling
- Maintained feature parity with previous versions
Optional dependencies
Mod Menu
Any compatible version
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" }