
Equipment Weight
Adds a weight system for equipment.
- Загрузки
- 911
- Подписчики
- 7
- Обновлён
- 16 мая 2026 г.
- Лицензия
- MIT
Опубликован 14 июля 2024 г.
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.equipment_weight and generic.max_equipment_weight 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.equipment_weight
- 10.0 for generic.max_equipment_weight
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_equipment_weight a LivingEntity with a generic.equipment_weight of 5.0 would be affected by the "Haste" effect. Changing the value of generic.equipment_weight to 3.0 would remove the "Haste" effect and apply the "Strength" effect
Ченджлог
3.0.0Релиз26.1, 26.1.1, 26.1.2 · 16 мая 2026 г.
3.0.0
- update to 26.1.x
- now depends on Fzzy Config instead of Cloth Config
Additions
- added server config options to set default entity attribute values (only affects players)
Changes
- removed "generic." prefix from all entity attributes, following vanillas example
Fixes
- fixed attribute sentiment for "equipmentweight:equipment_weight"
Technical
- replaced synced data with a data attachment, following the best practice for custom entity data
2.0.0Релиз1.21.1 · 19 сентября 2024 г.
2.0.0
- update to 1.21.1
1.0.0+1.20.1Релиз1.20.1 · 14 июля 2024 г.
1.0.0
Initial release.
Комментарии
Загружаем…