Hunger Is Stamina - MMOCore Addon icon

Hunger Is Stamina - MMOCore Addon -----

MMOCore Addon to bring full stamina system



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!
###############################################################################
# ██╗ ██╗██╗███████╗ #
# ██║ ██║██║██╔════╝ #
# ███████║██║███████╗ #
# ██╔══██║██║╚════██║ #
# ██║ ██║██║███████║ #
# ╚═╝ ╚═╝╚═╝╚══════╝.V${project.version} #
# Developer X_Niter #
# SPONSORED BY: #
# :none: #
# WIKI -> https://github.com/X-Niter/HungerIsStamina/wiki
###############################################################################

###############################################################################
#|===========================================================================|#
#| WHAT IS "Simple Stamina" ? |#
#| |#
#| SimpleStamina allows your hunger bar to become a Stamina bar by scaling |#
#| Stamina into Hunger, while respecting ALL vanilla and plugin events that, |#
#| change the player's stamina & Hunger value by blending them together. |#
#| |#
#| |#
#| In simple terms, Hunger becomes stamina. |#
#| "Kinda the Labeled of the plugin, right?, Well guess what there's more!" :) |#
#|---------------------------------------------------------------------------|#
#| WHAT IS "Advanced Stamina" ? |#
#| |#
#| Setting "SimpleStamina" to false will use the default Advanced Stamina |#
#| feature which separates Stamina and the Hunger bar. |#
#| Your character will consume your stamina before it consumes your hunger |#
#| as consequence for exhausting your stamina reserves. |#
#| This is to implement an RPG scenario of over-exhaustion, leading to the |#
#| inability to sprint after depletion, requiring you to take a break from |#
#| action and grab a quick bite or apply a helping potion, etc. |#
#| |#
#| To make changing between SimpleStamina and Default Advanced Stamina a |#
#| simple process, I implemented two commands which will automatically set |#
#| the plugin configuration to the desired mode setup. |#
#| You can still go back through the configs and change settings, these |#
#| commands are here to make setup and mode changing simple & faster! |#
#|===========================================================================|#
###############################################################################
SimpleStamina: false




###############################################################################
#|===========================================================================|#
#| SPRINTING STAMINA |#
###############################################################################

# Enable Sprinting to drain stamina.
# True = Enabled | False = Disabled
# Default True
StaminaCostForSprintingEnabled: true


# The amount of stamina that is drained when sprinting.
# Default 1
StaminaCostForSprinting: 1


# Stamina is set to drain on a tick timer to allow for more control on "Difficulty".
# The number you set here will set the timer to that number.
# Note: 20 Ticks is equal to 1 second.
# Default Every 20 Ticks(1 Second) the player sprints, drain 1 stamina.
StaminaDrainTickSpeedSprint: 50


# Disable stamina regen when Sprinting
# This may sound silly, but stamina is always regenerating even when using it.
# This option allows you to control this small detail
# Default True
SprintRegenDisable: true




###############################################################################
#|===========================================================================|#
#| JUMPING STAMINA |#
###############################################################################

# Enable Jumping to drain stamina
# True = Enabled | False = Disabled
# Default True
StaminaCostForJumpingEnabled: true


# The amount of stamina that is drained when a player jumps.
# Default 2
StaminaCostForJumping: 1

# Stamina is set to drain on a tick timer to allow for more control on "Difficulty".
# The number you set here will set the timer to that number.
# Note: 20 Ticks is equal to 1 second.
# Default Every 5 Ticks(half a Second) the player jumps, drain 2 stamina.
# Jumping is a single action that ends quickly, so the timer is shorter to catch efficiently.
# Tweak this around as needed, but I did set the number to the most optimal time.
# If you're wanting stamina to drain more when jumping, I'd just leave this be and use the stamina jump cost option.
StaminaDrainTickSpeedJump: 18


# Disable stamina regen when Sprinting
# This may sound silly, but stamina is always regenerating even when using it.
# This option allows you to control this small detail
# Default True
JumpRegenDisable: true




###############################################################################
#|===========================================================================|#
#| SWIMMING STAMINA |#
###############################################################################

# Enable Swimming to drain stamina
# True = Enabled | False = Disabled
# Default True
StaminaCostForSwimmingEnabled: true


# The amount of stamina that is drained when a player is swimming.
# Default 1
StaminaCostForSwimming: 1


# Stamina is set to drain on a tick timer to allow for more control on "Difficulty".
# The number you set here will set the timer to that number.
# Note: 20 Ticks is equal to 1 second.
# Default Every 20 Ticks(1 Second) the player is swimming, drain 1 stamina.
StaminaDrainTickSpeedSwim: 100


# Disable stamina regen when Swimming
# This may sound silly, but stamina is always regenerating even when using it.
# This option allows you to control this small detail
# Default True
SwimRegenDisable: false



###############################################################################
#|===========================================================================|#
#| STAMINA BAR PLACEHOLDER |#
#| |#
#| If you have Simple Stamina Enabled, this really isn't important |#
###############################################################################

# Here you can set a custom stamina bar to use in MMOCores action bar!
# Placeholder to use this is '%his_custom_sprint_bar%'

# "SimpleStamina" will auto disable the Custom Stamina Bar


# How many characters long your bar will be.
StaminaBarLength: 6

# Input one symbol or Character to use for your bar.
StaminaBarCharacter: "⚡"


# Define the character to display with %his_stamina_value% placeholder
# Default will look like this, "⚡20"
# This will respect spaces so if you wanted "⚡ 20", you would change this setting to "⚡ "
StaminaValueCharacter: "⚡"


# Should the Stamina bar or Stamina Value placeholder constantly show or only show when sprinting, jumping, or swimming?
# If True, will always show.
# If False, will only show when sprinting, jumping, or swimming.
ConstantBar: false
ConstantValue: false


# When 'ConstantBar' is false, and the player is not sprinting, jumping, or swimming; should we show stamina in number value on the action bar?
# For this to work, place the placeholder '%his_stamina_value%' anywhere in the MMOCore action bar config.
AlternatingBarAndValue: true


# When 'AlternatingBarAndValue' is true, %his_custom_sprint_bar% and %stamina_value% placeholder becomes a spacer of "|"
# This setting will allow you to change the spacer to what ever character you want.
# If you want this to be a blank space, set this to " "
SpacerForBarPlaceHolder: "|"
SpacerForValuePlaceHolder: "|"


###############################################################################
#|===========================================================================|#
#| FOOD |#
###############################################################################

# 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: 1


# Enabled Food Regen
# DEFAULT, True = Enabled
# This is automatically disabled on "SimpleStamina"
EnableRegen: true


# The max a player hunger will regen too.
# 1 equal to half a drumstick.
# DEFAULT, 10 = Half a Hunger
# This is automatically disabled on "SimpleStamina"
HungerRegenLimit: 10


# Amount of hunger to regen every "RegenTimeInTicks"
# This is automatically disabled on "SimpleStamina"
HungerRegenAmount: 1


# Time it takes to regen Hunger
# 20 Ticks equals 1 second
# DEFAULT, 4 seconds
# This is automatically disabled on "SimpleStamina"
RegenTimeInTicks: 120


# When player eats to fill the hunger bar, do you want food to fill a little bit of stamina.
# This is automatically disabled on "SimpleStamina"
FoodFillStaminaPartial: true


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




###############################################################################
#|===========================================================================|#
#| PLUGIN EXTRAS |#
#| Extra config options that didn't fit inside any general category, |#
#| these options should never need to be touched, |#
#| the defaults here are the MOST recommended settings! |#
###############################################################################

# Get notified when there is a new version available.
# Default True
Update-Checker: true


# Is this Plugin Enabled
IsPluginEnabled: true


# Shows more feedback in console on specific plugin events.
# Mainly utilized as a developer tool to see detailed feedback on things, nothing you might never need.
# Default False
Debug-Enabled: false


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


# Disables Stamina from regenerating.
# This option is already available in MMOCore's config file, please go use that instead!
# The reason this is here is for me to test specific features in the plugin.
DisableStaminaRegen: false

WIKI:
Currently had not made one.

SUPPORT, SUGGESTIONS, FEEDBACK, QUESTIONS :
My support Discord server is open to all! You can click the discord icon below or click Here!

SUPPORT MY WORK!
If you find this plugin awesome and to your enjoyment, leave a review, but please don't use the review section to post stack traces or bugs, if you really have a bug or issue to report then send it on GitHub where I will actually get Mobile Notifications and be able to reply asap.
[​IMG]

[​IMG]
[​IMG]


[​IMG]
Resource Information
Author:
----------
Total Downloads: 1,859
First Release: Sep 4, 2021
Last Update: Mar 10, 2024
Category: ---------------
All-Time Rating:
10 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings