介绍
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
常见问题
Equipment Weight 支持哪些 Minecraft 版本?
Equipment Weight 支持 Minecraft Java 版 1.20.1–26.1.2,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Equipment Weight 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
TheRedBrain 的其他作品
查看全部 →Shield API
制作带有自定义模型的盾牌,从未如此简单!
Bundle API
Bundle API 让模组作者可以轻松添加容量超过一组物品的收纳袋,袋中可存放由物品标签指定的物品。
Better Combat Extension
Extends the mod 'Better Combat' with additional functionality.
Slot Customization API
A small API for mods to dynamically change inventory slot positions and enable/disable them.
评论
登录后评论和评分