Skip to content

LeashedMobsTeleport 1.2 - The "Ghost Leash" Update

Choose a tag to compare

@comonier comonier released this 20 Feb 08:45
· 3 commits to main since this release

πŸš€ 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.