LeashedMobsTeleport 1.2 - The "Ghost Leash" Update
π LeashedMobsTeleport v1.2 - The "Ghost Leash" Update
This release introduces the Ghost Leash system, a complete overhaul of the leashing logic designed to provide the most stable mob transport experience in Minecraft. This update specifically targets and eliminates long-standing issues with lead duplication and entity loss.
π οΈ Key Changes
- Lead Duplication Fix (Major Update) πͺ’
We have completely rewritten the EntityUnleashEvent logic to solve the lead dupe bug.
Controlled Returns: By using event.setDropLeash(false), the plugin now prevents the game from dropping "phantom" leads.
Direct Inventory Handling: Leads are now returned directly to the player's inventory upon a manual unleash, ensuring the item count remains consistent. - Ultra-Active Monitoring (Anti-Stuck System) π
No more losing mobs in holes or behind walls.
Line-of-Sight Raytracing: The plugin now performs a raytrace check between the player and the mob. If a block obstruction is detected, the mob teleports to the player immediately.
2-Tick Heartbeat: A high-frequency scheduler checks every 0.1 seconds to ensure mobs stay within a safe "physical" distance, preventing leash snaps due to server lag or geometry. - Entity Pacification (LMT_PROTECTED) π‘οΈ
Leashed mobs now enter a "Protected State" to ensure they survive the journey:
Invulnerability: Mobs are protected from all damage sources and sun combustion.
Disabled AI: Creepers won't ignite, Endermen won't teleport away, and hostile mobs won't target players while leashed.
Auto-Cleanup: The unpacify logic ensures mobs return to their natural state once unleashed or if the plugin is disabled. - Advanced Teleportation Logic π
Passenger Synchronization: During player teleports, mobs are temporarily mounted as "passengers" to ensure they cross world boundaries and long distances without the leash breaking.
Fence Interaction: Improved logic for hitching mobs to fences, automatically applying protection when they are stationary.
π¦ Installation
Download the latest .jar from the GitHub Releases page.
Drop it into your /plugins folder.
Restart your server.
Developer Note: Ensure your players have the leashedmobsteleport.use permission to access the new pacification features.