DGpets v1.1.0
Major Update - New Features, Bug Fixes & QoL Improvements
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
New Features
⚙ Pet Settings GUI
A brand new settings panel accessible from the pet menu! Customize exactly what's displayed for your pet:
- Name Tag Toggle - Show or hide your pet's name above it
- ❤ Health Bar Toggle - Show or hide the live health bar in the name tag
Hunger Bar Toggle - Show or hide the hunger bar in the name tag
- ≡ Action Bar HUD Toggle - Show or hide the bottom-of-screen stats display
- ♪ Silent Mode - Mute your pet's ambient sounds (applies instantly!)
All settings are saved per-pet and persist across restarts. Toggles update in-place without moving your cursor.
Live Action Bar HUD
When your pet is active, a real-time HUD is shown at the bottom of your screen:
Code:PetName │ ❤ 45/50 │ ⚔ 12.0 │ ⚡ 1.30x │ ☕ 15/20 │ ⚔ FIGHTING
Shows current HP (live, not max), damage, speed, hunger, and combat status. Can be toggled off in Settings.
Kill Notifications
When your pet defeats an enemy, you'll now get a message:
"Your Wolf has defeated a zombie!"
Combat target is automatically cleared after a kill.
❤ Improved Name Tag Display
The name tag above your pet now shows separate, clean components:
- Pet name in color
- Health bar with colored segments: ❘❘❘❘❘❘❘❘❘❘ 45/50
- Hunger bar with color coding: green → orange → red based on hunger level
- Each element can be individually toggled in Settings
🗑 /pets remove Command
New admin command to remove a pet from any player's collection:
Code:/pets remove <player> <type>
- Automatically despawns the pet if it's currently active
- Smart tab completion - shows only the pet types the target player actually owns
- Notifies both the admin and the player
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Bug Fixes
- Hunger Message Spam - Fixed: "Your pet is starving!" was being sent every decay tick when at 0 hunger. Now it's sent only once when hunger first reaches the threshold.
- Duplicate Save Data - Fixed: baby, hunger, and death-cooldown fields were being saved twice per pet in the YAML files. Cleaned up.
- Entity Map Leak - Fixed: when a pet entity became invalid (chunk unload, etc.), the internal entity-to-player tracking map was not cleaned up, causing a slow memory leak over time.
- Hungry Pet Still Gets Target - Fixed: when your pet was starving and you attacked a mob, the pet would receive a combat target but wouldn't actually attack (confusing). Now hungry pets completely ignore assist and hostile detection.
- Vanilla Feeding Override - Fixed: players could give wheat to a pet cow, seeds to a pet chicken etc. through vanilla mechanics, triggering love mode hearts. Now blocked via EntityEnterLoveModeEvent.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 Improvements
- Performance - Config values (hunger threshold, hunger enabled) are now cached outside the per-pet loop in the follow task instead of being read from disk every 0.5 seconds for every active pet.
- Entity Transformation Protection - Pets can no longer be transformed by external events (pig → zombie pigman from lightning, mooshroom → cow from shearing, etc.)
- Explosion Protection - Pets now take zero damage from TNT, creeper explosions, and other explosions.
- Silent Mode Control - Previously all pets were forced silent. Now it's a per-pet setting that defaults to OFF (sounds enabled) and can be toggled in the Settings GUI.
- Version Bump - v1.0.0 → v1.1.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Full Changelog Summary
Pet Settings GUI with 5 toggle switches
Live Action Bar HUD (HP, DMG, Speed, Hunger, Combat)
Kill notifications when pet defeats an enemy
Improved name tag with separate health & hunger bars
/pets remove admin command with smart tab completion
Fixed hunger message spam at 0 hunger
Fixed duplicate save data in YAML files
Fixed entity tracking map memory leak
Fixed hungry pets still receiving combat targets
Blocked vanilla feeding/love mode on pets
Entity transformation protection (lightning, shearing)
Explosion damage protection
Silent mode now per-pet configurable toggle
Performance: config values cached outside loops
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
As always, drop a review if you enjoy the plugin! Your feedback helps shape future updates.
- DG-Studio
