- 版权类型
- 转载
- 插件中文名称
- 饥饿就是体力
- 插件英文名称
- Hunger Is Stamina
- 支持的核心(服务端)
- Spigot
- Paper
- 语言支持
- 多语言
- 前置组件
- MMOCore
- 适配版本(Java)
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
- 1.15
HungerIsStamina
“许多人一次又一次要求的 MMOCore 插件”
HIS' 旨在成为一个自定义耐力系统的私人项目,类似于你们中的许多人可能在 Wynncraft 上看到了这个功能,但是,它并不能开放给所有服务器免费使用!
MMOCore 引入耐力资源为使该功能最终向公众开放开辟了完美的道路,但自然会有所不同!
过去,许多Mythic成员都询问过如何让耐力与基本游戏玩法更加“集成”,而不是技能和/或武器的消耗。
许多人肯定认为,这个耐力系统是一个不寻常的想法,最终可能导致 Mythic 团队出于很好的理由不引入此功能。
多亏了这一点,我成功地构建了一个完整的插件,除了 MMOCores Stamina 资源并融入基础游戏之外,什么都没有。
所以这个插件诞生了!
这个插件创造了一个用于在冲刺时消耗耐力的小型系统。
这是一个完全可配置的插件,包括冲刺、跳跃和游泳的耐力消耗。
除此之外,您还可以在两个系统之间进行选择,默认的“高级耐力”
或是选择开启简单耐力,完全修改饥饿条值以表示您拥有的耐力。
不幸的是,我不擅长解释,所以我在剧透中提供了配置文件,让您更好地了解这个插件可以做的一切!
“许多人一次又一次要求的 MMOCore 插件”
HIS' 旨在成为一个自定义耐力系统的私人项目,类似于你们中的许多人可能在 Wynncraft 上看到了这个功能,但是,它并不能开放给所有服务器免费使用!
MMOCore 引入耐力资源为使该功能最终向公众开放开辟了完美的道路,但自然会有所不同!
过去,许多Mythic成员都询问过如何让耐力与基本游戏玩法更加“集成”,而不是技能和/或武器的消耗。
许多人肯定认为,这个耐力系统是一个不寻常的想法,最终可能导致 Mythic 团队出于很好的理由不引入此功能。
多亏了这一点,我成功地构建了一个完整的插件,除了 MMOCores Stamina 资源并融入基础游戏之外,什么都没有。
所以这个插件诞生了!
这个插件创造了一个用于在冲刺时消耗耐力的小型系统。
这是一个完全可配置的插件,包括冲刺、跳跃和游泳的耐力消耗。
除此之外,您还可以在两个系统之间进行选择,默认的“高级耐力”
或是选择开启简单耐力,完全修改饥饿条值以表示您拥有的耐力。
不幸的是,我不擅长解释,所以我在剧透中提供了配置文件,让您更好地了解这个插件可以做的一切!
###############################################################################
# ██╗ ██╗██╗███████╗ #
# ██║ ██║██║██╔════╝ #
# ███████║██║███████╗ #
# ██╔══██║██║╚════██║ #
# ██║ ██║██║███████║ #
# ╚═╝ ╚═╝╚═╝╚══════╝.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
# ██╗ ██╗██╗███████╗ #
# ██║ ██║██║██╔════╝ #
# ███████║██║███████╗ #
# ██╔══██║██║╚════██║ #
# ██║ ██║██║███████║ #
# ╚═╝ ╚═╝╚═╝╚══════╝.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, "
# This will respect spaces so if you wanted "
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