Stretchy Leash
This mod significantly improves the leash mechanics in Minecraft, making their usage more reliable and convenient. The main goal is to prevent accidental breaks and simplify tracking the leash status.
Main Improvements
With default settings, the mod introduces the following changes:
-
Leashes don't break instantly when exceeding the maximum length. Instead, they begin to stretch and only break after a certain period of tension. This helps avoid accidental breaks due to lag or sudden player movements.
-
Leashed mobs are pulled more strongly towards the leader, allowing them to return to the acceptable radius faster when the leash is stretched. Particularly useful during fast movement.
-
Mobs on a leash receive increased step height up to 1 block, preventing them from getting stuck on uneven terrain.
-
Audio alerts play near the player when the leash begins to stretch, breaks, or is manually removed.
Configuration
Client settings can be modified through Mod-Menu + Cloth-Config. On servers, use the /stretchy-leash config command (admin only).
gracePeriod (Integer)
Default: 35 ticks (1.75 seconds) Vanilla: 0
Determines how long a leash can remain stretched before breaking.
maxLength (Double)
Default: 10 blocks Vanilla: 10 blocks
Sets the maximum leash length before stretching begins.
Does not affect the distance at which mobs start being pulled (6 blocks).
pullStrength (Double)
Default: 2 Vanilla: 1
Determines the strength with which leashed mobs are pulled towards the leader.
stepHeight (Float)
Default: 1 Vanilla: 0
Increases the minimum step height for leashed mobs to the specified value.
Implementation Details
For full server-side compatibility, the existing sound item.crossbow.load_middle is used as the stretching signal. In the vanilla version, this sound lacks subtitles, and if they existed, they might display incorrectly.