Stamina Attributes

A small API that adds a stamina system controlled by entity attributes.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Stamina Attributes
Скачать Stamina Attributes1.20.1 – 26.1.2 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A small API that adds a stamina system controlled by entity attributes.

  • Тип: мод
  • Загрузчик: fabric
  • Версии Minecraft: 1.20.1 – 26.1.2
  • Скачиваний на Modrinth: 40 257

Подробно

This API adds a stamina system controlled by entity attributes.

LivingEntities can have up to staminaattributes:maxstamina amounts of stamina. Stamina is regenerated by staminaattributes:staminaregeneration every staminaattributes:staminatickthreshold ticks.

When stamina is reduced, regeneration is stopped for staminaattributes:staminaregenerationdelaythreshold ticks.

When stamina is <= 0, regeneration is stopped for staminaattributes:depletedstaminaregenerationdelaythreshold ticks.

staminaattributes:reservedstamina describes the percentage amount of maximum stamina that is currently not available.

staminaattributes:itemusestaminacost is the amount of stamina that is reduced when using an item with a stamina cost. There are two ways to give an item a stamina cost:

1. Items in the "staminaattributes:usingcostsstamina" item tag reduce stamina by staminaattributes:itemusestaminacost when they are used once. When stamina is < 0 the use action is not performed. In that case the item gets a cooldown, configured in the server config. 2. Items in the "staminaattributes:continuoususingcostsstamina" item tag reduce stamina by staminaattributes:itemusestaminacost every tick while they are used. When stamina is < 0, the usage is cancelled. In that case the item gets a cooldown, configured in the server config.

The different staminaattributes:\\tickstaminacost attributes describe the stamina cost for the corresponding activity. This cost is applied every tick (20x per second). This includes the following activities:

- sprinting - sneaking - walking - swimming - walking underwater - walking in water - climbing

The different staminaattributes:\\actionstaminacost attributes describe the stamina cost for the corresponding actions. This cost is applied once every time the action is performed. This includes the following actions:

- jumping - sprint jumping - attack blocking - attacking - block breaking

Several activities and actions can be configured to require stamina. If stamina is 0 or lower, they can't be performed. This includes:

- jumping - sprinting - swimming - attacking - block breaking - attacking - attack blocking

Blocks that can be broken instantly by hand (blocks with a "destroyTime" of 0) can be excluded from the stamina requirement.

If a player has 0 or less stamina, they are exhausted, which means that a status effect is applied. This status effect is defined in the server config.

This feature can be enabled in the server config, but it's disabled by default.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также