A small plugin to tinker with some logic involving leads. Allows leashing of more entities than supported by default, some entities are still unleashable at this time. Features
Permission support - optional (default: true) - see permissions in next section.
Leashed-Invulnerable feature - optional (default: false) - entities that are leashed become invulnerable to all damage, the effect stops once they are unleashed.
Anti-Breaking feature - optional (default: true) - once the leash becomes longer than 7.5 blocks, the leashed entity will be teleported closer to the leash-holder to prevent the lead from breaking. You know how mobs sometimes don't want to climb up a single block, no more needing to turn around to check on terrain-entity-behavior! Tested for walking and running speeds, anything faster is subject to typical lead breaking behavior, potentially.
Permissions
versaleash.leash.* ... OP, allows leashing of all supported entities.
versaleash.leash.<entity> ... replace <entity> with the name of an entity that should be allowed for leashing.
Installation Download .jar file then drop it into your server's plugin folder, reboot and all should be well!
Version support Currently this plugin is compiled against Java 21, ie MC 1.20.5 and above. This does not use any NMS code to function so future updates should not immediately break it, though I will always test with each update as they appear.
Config
Support/Help For reporting bugs, suggestions, or you have other issues, you can either use the discussion feature here or visit my Discord server (https://discord.gg/36bU828tHc) which is a place I'm aggregating for all my projects for a central support location.