Sueta
HO

HorseSwim

1.0

Allows rideable entities to swim.

·Plugin

Description:
Simple plugin that makes so you can swim while riding a horse over a lake!
This works for any entity: horses, pigs, and custom ones too, as long as you're riding them.
The plugin is highly customizable and has two swim modes!

Installation:
IMPORTANT:
EpicPluginLib is needed as it's a dependency to handle configurations.

  1. Drop EpicPluginLib and HorseSwim in your plugins folder.
  2. Restart your server.

Modes:

MANUAL: You need to press space to make the horse swim. The more you press it, the higher the jump! The swim velocity is calculated by: Power of the jump * Max horse jump height * Config multiplier
This mode only works for horses. Other rideable entities swim in AUTO mode.

AUTO: Horses and other entities swim automatically once they are underwater. You can edit the Y velocity in config.


Configuration:

# Swim modes: AUTO and MANUAL. MANUAL works only for horses, all other rideable animals swim in AUTO.
Swim Mode: AUTO

# Prevents the player from being dismounted automatically when they are underwater.
# Players can still crouch to dismount underwater, this only prevents the vanilla dismount behavior.
Prevent Auto Underwater Dismount: true

# In manual mode, horses jump force in water is: Power of the jump * Horse max jump strength * This multiplier.
Manual Swim Jump Multiplier: 1.4

# The Y velocity to set to the entity when Swim Mode is AUTO.
Auto Swim Velocity: 0.15

Commands:

/horsereload
Description: Reloads the plugin's configurations and listeners.
Permission: horseswim.reload


Compatibility:

I have tested on every version and the plugin seems to work only in 1.14 and newer. It should work on future versions as it is very simple.

Similar projects

Plugin →