Скачать Equipment Weight — Minecraft Моды — ModStock

Equipment Weight

Активный

Установок

0

Последнее обновление

9 месяцев назад

Версии

1.20.1 — 1.21.1
Клиент и сервер
Fabric
Приключенческие
Оружие и броня
Библиотеки

Equipment Weight

This mod adds a weight system for equipment.

This mod is an API for mod and data pack authors. It does nothing on its own.

Implementation

The ratio of the two new entity attributes _generic.equipmentweight and _generic.max_equipmentweight is compared to a configurable list of values. When the ratio is equal or greater than one of the values the corresponding status effect is applied. Only one status effect will be applied.

The default attribute values are:

  • 0.0 for _generic.equipmentweight
  • 10.0 for _generic.max_equipmentweight

Configuration

The server config contains a map of float values to strings. The strings should be valid identifiers for status effects. Invalid strings are ignored.

Example

"weight_effects": {
    "0.2": "minecraft:strength",
    "0.5": "minecraft:haste",
    "0.4": "minecraft:regeneration",
    "1.0": "minecraft:glowing"
}

Using this config and the default value for _generic.max_equipmentweight a LivingEntity with a _generic.equipmentweight of 5.0 would be affected by the "Haste" effect. Changing the value of _generic.equipmentweight to 3.0 would remove the "Haste" effect and apply the "Strength" effect

Участники проекта
TheRedBrain

TheRedBrain

Разработчик