Skip to content

X-Niter/HungerIsStamina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Server Twitter: X_Niter Support me on Patreon

HungerIsStamina

"The MMOCore Addon that many asked for, time and time again"

HIS' was meant to be a private project for a custom stamina system similar to what many of you may have seen on Wynncraft, however, It wasn't a public feature for others to enjoy on their servers! SAD! MMOCore introducing the Stamina resource opened up the perfect path to making this feature finally live to the public but naturally with a twist! Many Mythic members in the past have asked about making stamina more "Integrated" with the base gameplay other than a cost for abilities and/or weapons. Numerous individuals definitely thought it was an unusual idea for this stamina system to be a thing that ultimately COULD have lead the Mythic team to not introduce this feature for very good reasoning. Thanks to that, I've managed to build a whole addon dedicated to nothing but MMOCores Stamina resource and blending into the base game.

SO HERE IT IS!

A small system for draining stamina when sprinting is now a fully configurable plugin to include Stamina draining for Sprinting, Jumping, & swimming. Along with that, you can choose between two systems, the default out of box "Advanced Stamina" which comes pre-configured for the best results. OR Simple Stamina which completely modifies the hunger bar values to represent the amount of stamina you have.

Unfortunately, I'm bad with explanations, so I provided the config file here in the spoiler to give you a better idea of everything this plugin can do!

Config.yml
# [[ Hunger is Stamina - v1.2.0 ]]
#   Motivated by ASangarin, Created by X_Niter


# NOTE: Any changes made here requires restart, reloading is not a feature in this addon!

# Is this Plugin Enabled [True = YES, False = NO]
IsPluginEnabled: true


####################################################################
#                     SPRINTING STAMINA                            #
####################################################################

# Do you want sprinting to drain stamina? [True = YES, False = NO]
StaminaCostForSprintingEnabled: True

# Stamina cost while sprinting, cost will apply every second the player is running
StaminaCostForSprinting: 1

# How many Ticks pass before draining the stamina cost from the players stamina
# DEFAULT is drain "StaminaCostForSprinting" every (1)second of sprinting [20 Ticks = 1 Second]
StaminaDrainTickSpeedSprint: 20



####################################################################
#                     JUMPING STAMINA                              #
####################################################################

# Do you want jumping to drain stamina? [True = YES, False = NO]
StaminaCostForJumpingEnabled: True

# Stamina Cost for when a Player jumps
StaminaCostForJumping: 2

StaminaDrainTickSpeedJump: 20

####################################################################
#                     SWIMMING STAMINA                             #
####################################################################

# Do you want swimming to drain stamina? [True = YES, False = NO]
StaminaCostForSwimmingEnabled: True

# Stamina cost while swimming, cost will apply every second the player is swimming
StaminaCostForSwimming: 1

StaminaDrainTickSpeedSwim: 20


####################################################################
#                       PLUGIN EXTRAS                              #
####################################################################

# Get notified when there is a new version available
# Only Available if "config-version" is 4+ as of right now!
Update-Checker: false

# Enable if you want to see more information about the plugins functions.
Debug-Enabled: false

# DO NOT TOUCH, IT'S AT THE BOTTOM FOR A REASON!
config-version: 4


####################################################################
#                          FOODS                                   #
####################################################################

# When food bar/stamina is empty or 0, should the player take Vanilla Minecraft Starvation Damage.
# If True then player will take Minecraft Starvation Damage.
# If False, then the player will not take Starvation damage.
StarvationDamage: true

# If Starvation Damage is true, how much damage should they take?
StarvationDamageValue: 0.5

# Enabled Hunger Bar Regeneration
# DEFAULT, True = Enabled
EnableRegen: True

# The max a player hunger will regen too.
# 1 equal to half a drumstick.
#DEFAULT, 10 = Half a Hunger
HungerRegenLimit: 10

# Amount of hunger to regen every "RegenTimeInTicks"
HungerRegenAmount: 1

# Time it takes to regen Hunger
# 20 Ticks equals 1 second
# DEFAULT, 4 seconds
RegenTimeInTicks: 80

# When player eats to fill the hunger bar, do you want food to fill a little bit of stamina.
FoodFillStaminaPartial: true

# Enables you to change food values in Foods.yml
EnableCustomFoodValues: True

Find it on spigot!

Features

  • Enable/Disable Plugin
  • Some Commands
  • Stamina Sprint System
  • Stamina Jump System
  • Stamina Swim System
  • Custom Food Values
  • Hunger Regen Control
  • & Whatever else gets suggested and added in the future!

Future Plan

  • Listen for Suggestions from you amazing keyboard titans!
  • Stamina Bar Placeholder, A revamp to MMOCores.