SmartPets v1.7 - Changelog
Critical Bug Fixes & Major Enhancements
Parrot-Specific Issues Resolved
✅ Robust Pet Persistence System
Problem: Pets disappearing when players move out of render distance
Impact: ✅ Pets no longer disappear when owner moves away
✅ Variant Persistence System
Problem: Parrots (and other pets) randomly changing colors/appearances
Impact: ✅ Pet appearances remain consistent across server restarts
✅ Type-Specific Sound System
Problem: All pets making wolf sounds regardless of their actual type
Impact: ✅ Each pet type now produces appropriate sounds for all behaviors
✅ Enhanced SafeTeleport System
Problem: Pets dying from teleportation into solid blocks
Impact: ✅ Eliminates fatal teleportation deaths, ensures pet safety
✅ Parrot-Specific Behaviors
Problem: Parrot boredom due to lack of species-specific engaging activities
New Features:
PetPerchTask - Intelligent Perching Behavior
PetMimicTask - Sound Learning & Mimicry
Impact: ✅ Parrots now have engaging, species-specific activities that address boredom
Technical Improvements
Version Compatibility Fixes
- Fixed: Updated sound constants for Minecraft 1.16.5+ compatibility
- Fixed: Updated material constants for cross-version compatibility
Performance & Compatibility
Folia/Paper Compatibility
- All new features use SchedulerCompat for maximum server compatibility
- Enhanced safeTeleport with proper scheduler integration
- Thread-safe implementations across all new components
Database Enhancements
- Automatic schema migration for variant column
- Backward compatibility maintained
- Support for YAML/SQLite/MySQL storage types
Memory Optimization
- Sound caching system to prevent repeated config lookups
- Efficient entity scanning algorithms
- Proper task cleanup and resource management
Additional Bug Fixes (v1.7.1)
Critical Issue: Chat Spam "High Alert" Messages
Problem: Pets spamming chat with "Alpha Pack Leader is now on high alert!" every 7 seconds near mob spawners.
- Added ConcurrentHashMap for thread-safe cooldown tracking
- Prevents message spam while maintaining alert functionality
- Maintains full Folia/Paper compatibility
Critical Issue: Broken Admin Pet Deletion GUI
Problem: Confirmation GUI showing "Missing translation: menu.admin.delete_confirm.title" and not responding to clicks.
User Experience Improvements
For Parrot Owners:
- ✅ No more disappearing pets - Robust persistence system
- ✅ Consistent pet appearance - Colors/variants stay the same
- ✅ Appropriate sounds - Parrots chirp and squawk instead of barking
- ✅ Zero teleportation deaths - Enhanced safety system
- ✅ Engaging behaviors - Perching, sound learning, mimicry activities
- ✅ Experience rewards - Pets gain XP from species-specific activities
For All Pet Types:
- ✅ Improved teleportation safety across all behaviors
- ✅ Type-specific sounds for more immersive experience
- ✅ Enhanced stability with better thread safety
- ✅ Configuration flexibility for server customization
⚙️ Migration Notes
Professional Configuration Migration System (NEW in v1.7)
Problem Solved: Existing users' config.yml files don't have the new sound configurations, causing PetSoundManager to load 0 sound configurations.
Solution Implemented:
- Automatic Detection: Detects configuration version and missing sections
- Non-Destructive Migration: Adds missing configurations without overwriting user customizations
- Smart Content Validation: Checks if sections exist but are empty
- Automatic Reload: Forces PetSoundManager reload after migration
- Complete Validation: Verifies all 64 sound configurations are properly loaded
Automatic Features:
- Database schema automatically migrates to add variant column
- Existing pets will have variants assigned and saved on next spawn
- NEW: Sound configurations automatically migrate from v1 to v2
- NEW: Empty configuration sections are automatically populated
- NEW: PetSoundManager automatically reloads after migration
- All changes are backward compatible
Configuration Updates:
New optional configuration sections
automatically added to existing config.yml
Version: 1.7
Compatibility: Minecraft 1.16.5 - 1.21.8
Server Types: Paper, Spigot, Folia, Purpur
Build Date: 2025-01-11