跳到正文

Staminafy

作者:TygrysGames

Adds a simple stamina system to Minecraft.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Staminafy Banner

Staminafy

Staminafy is a simple mod that adds a stamina system to minecraft.

You can use four gamerules to control how stamina acts:

  • Use Staminafy (staminafy) [true/false] – when set to true stamina system is active.
  • Max Stamina (maxStamina) [any number below 1,000,000, negative will remove stamina] – controls the max stamina a player/entity can passively get.
  • Stamina Regeneration (staminaRegen) [any number] – controls how much stamina player/entity regains per tick (1 second has 20 ticks)
  • Remove Food (removeFood) [true/false] – when set to true removes the Minecraft hunger system making food heal instead (aka the old Minecraft food system)

How the system works is if player is running it will drain 1 stamina per tick, so when Max Stamina is set to 20 – player will be able to run for one second. While not running stamina will be regenerated, but while stopping running you won’t regain stamina for the next 15 ticks. If you reach 0 stamina, you are forced to stop running and won’t regain stamina for the next 60 ticks.

To change Stamina Bar position you can use:
/staminafyswap [true/false] where true is center of the screen and false is right side of the inventory.

Default Gamerule Values:

Use Staminafy – true

Max Stamina – 300

Stamina Regeneration – 4

Remove Food – false

Staminafy for Devs/Artists

Stamina is an Attribute attribute.staminafy.stamina.

To change default texture of the Stamina Bar you can make a resource pack and create a 90×16* texture:
assets/staminafy/textures/screens/staminacenter.png

\* – you can change the size but it is not recommended since it might look weird if GUI Scale is too low.

_This will be extended in the future._

常见问题

Staminafy 支持哪些 Minecraft 版本?

Staminafy 支持 Minecraft Java 版 1.21.8,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Staminafy 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

TygrysGames 的其他作品

查看全部 →