Realistic Swimming

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

 

Source code: https://github.com/4a2e532e/RealisticSwimming

 

This plugin makes swimming look more realistic.

 

 

Features:

Better swimming animation:

This plugin uses the elytra animation to make swimming look more realistic.

 

Better swim-controls:

Press the sprint key and swim in the direction you look at.

In vanilla you would have to press space to go up and there is no way to get down fast. With this plugin, you can press the sprint key and look up to go up or look down to go down fast.

This makes diving fun.

 

Armor weight:

Armor weight:
Being able to swim in heavy armor is not realistic, so I have added a weight system (can be disabled in the config):
This system only calculates the weight of armor in the armor slots.
It ignores items or armor in the inventory.

Every armor piece has a weight that can be changed in the config.
You can also override the default weight of an armor piece by writing a weight value into the lore of that armor piece:
For example

Weight: 100
 

gives this individual armor piece a weight of 100.

If the weight exceeds the Max sprinting weight (can be changed in the config), the player can't sprint-swim.

The weight also affects stamina usage.
If a player wears armor with a weight of 100 and the normal stamina usage is 10, the player's stamina usage is 110 per tick (100 weight + 10 normal stamina usage = 110 stamina usage per tick).

When you start swimming you get a message telling you your current armor weight (can be disabled in the config).
If your armor weight exceeds the max sprinting weight, you get warnings that you are too heavy to sprint (can be disabled in the config).

 

Stamina:

It's not really realistic to be able to swim through an entire ocean without a break, that's why this plugin also has a stamina system (can be disabld in the config:
When you start swimming, a stamina bar appears (by default in the scoreboard but you can also configure the plugin to use the boss bar as a stamina bar).
Every tick you loose stamina (amount is configurable).
If you run out of stamina, you drown (can be disabled).
You have to get out of the water to regain stamina.

 

Configuration:

NoCheatPlus exemption ticks (0 = disabled): 200
#The time in ticks the player is exempted from NoCheatPlus checks when swimming or falling (0 to disable)

Minimal water depth: 1
#The minimal water depth for the animation to start

Enable swimming in creative mode: true
#Should the animation be enabled in creative mode?

Permissions required: false

Enable while swimming up: true
#Should the animation be enabled while swimming upwards?

Enable speed boost/sprinting: true
#Should the speed boost be enabled?

Sprint speed: 0.3
#The speed boost you get when sprinting while swimming

Enable fall animation: false
#Enables an experimental fall animation

Minimal fall distance: 3
#Minimal fall distance to activate the fall animation (integer).
#Values lower than 2 look glitchy.

Fall glide speed: 0.1
#The glide speed while the falling animation is active

Fall downward speed: 1
#The downward speed while the falling animation is active (has to be at least 0.5 or higher, values lower than 0.5 are glitchy)

Elytra looses durability while swimming: false
#Should the elytra loose durability while swimming?

EHM_compatibility mode (no speed boost when swimming up): false
#Disables speed boost when swimming up to prevent players from bypassing ExtraHardMode's weight system

Enable stamina: true
#Enables the stamina system

Enable drowning when out of stmina: true
#Enables drowning when out of stamina

Sprint stamina usage: 50
#The stamina usage when sprinting while swimming (integer)

Normal swimming stamina usage: 10
#The stamina usage when swimming at normal speed (integer)

Stamina update delay in ticks: 20
#The delay between stamina updates in ticks (1 second = 20 ticks).
#When using the boss bar, less delay will make the stamina bar look smoother.

Use BossBar to display stamina bar: true
#Should the stamina bar be displayed as a boss bar?

Enable armor-weight: true
#Should the armor weight system be enabled?

Max sprinting weight: 20
#The maximum armor weight a player is able to sprint with

Warn player when trying to sprint but to heavy: true
#Should players receive a warning message when trying to sprint but too heavy?

Show fullscreen warning when swimming in heavy armor: true
#Should a fullscreen warning be shown to players trying to swim in heavy armor?

Announce armor weight when starting to swim: true
Should the current armor weight be announced when starting to swim?

Diamond Helmet Weight: 10
Diamond Chestplate Weight: 10
Diamond Leggings Weight: 10
Diamond Boots Weight: 10
Iron Helmet Weight: 7
Iron Chestplate Weight: 7
Iron Leggings Weight: 7
Iron Boots Weight: 7
Chain Helmet Weight: 5
Chain Chestplate Weight: 5
Chain Leggings Weight: 5
Chain Boots Weight: 5
Gold Helmet Weight: 6
Gold Chestplate Weight: 6
Gold Leggings Weight: 6
Gold Boots Weight: 6
Leather Helmet Weight: 2
Leather Chestplate Weight: 2
Leather Leggings Weight: 2
Leather Boots Weight: 2

 Permissions:

rs.user.swim
#Allows you to use the swimming animation

rs.user.fall
#Allows the user to use the falling animation

rs.user.boost
#Allows you to use the speed boost

rs.admin.reload
#Allows you to reload the config using /rs reload

rs.bypass.stamina
#Allows you to bypass the stamina system

 Commands:

/rs reload                                                   reloads the config
/swim on                                                    enables the swimming animation
/swim off                                                    disables the swimming animation
/fall on                                                        enables the swimming animation
/fall off                                                        disables the swimming animation

 

 

 


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    264308
  • Created
    Apr 2, 2017
  • Last Released File
    Apr 13, 2017
  • Total Downloads
    17,024
  • License

Categories

Members

Recent Files

Bukkit