LeashedMobsTeleport v1.2 - The "Ghost Leash" Update
This update introduces the
Ghost Leash system, focusing on total stability during entity transport and a definitive fix for lead duplication glitches.
Main Changes:
1. Lead Duplication Fix
The core of this update. I've overhauled the
EntityUnleashEvent logic. By using
setDropLeash(false) and handling the item return directly to the player's inventory, the "infinite leads" bug is now gone.
2. Ultra-Active Monitoring (Anti-Stuck)
- Line-of-Sight Check: The plugin now uses raytracing to see if your mob is stuck behind a wall or in a hole. If it loses sight of you, it teleports to your location instantly.
- 2-Tick Heartbeat: Checks every 0.1s to prevent the leash from snapping due to distance or server lag.
3. Entity Pacification (LMT_PROTECTED)
Leashed mobs are now "protected" during travel:
- Invulnerability: No more mobs dying to fire, fall damage, or sunlight while leashed.
- IA Control: Creepers won't explode, Endermen won't teleport, and mobs won't target you while being led.
4. Seamless Teleportation
Utilizes a temporary "passenger" logic during
PlayerTeleportEvent. This ensures that even on long-distance teleports or world changes, your mobs follow you without the leash breaking.
Technical Details:
- Built for stability on high-latency servers.
- New permission check: leashedmobsteleport.use
- Added messages.yml support for multi-language servers.