FTB Ranks - MT 物品栏重量

模组

原名 FTB Ranks - MT Inventory Weight · 作者 MEGATREX4

FTB Ranks InventoryWeight 将 FTB Ranks 与 MT Inventory Weight 连接起来,允许服务器管理员通过 FTB Ranks 的元数据键(meta keys)授予基于固定值、百分比或倍率的携带容量加成。

0 本站下载 0 关注 更新于 5 个月前

需要前置:Fabric API、MT Inventory Weight

最新 1.0.0-26.1 · 26.1.2 · Fabric

一键开服(送7天)

FTB Ranks InventoryWeight

FTB Ranks InventoryWeight 是 MT Inventory Weight 和 FTB Ranks 的服务端附加组件。

它允许服务器管理员通过 FTB Ranks 的权限值给予玩家更高的最大背包负重上限。

此模组非独立运行。

依赖项

本附加组件需要以下模组:

FTB Ranks 需要 FTB Library 和 Architectury API。请确保它们均已安装,否则 FTB Ranks 将无法加载。

仅限服务端

FTB Ranks InventoryWeight 专为在服务端运行而设计。

它不会添加任何客户端 UI、快捷键、界面、HUD 元素或工具提示。它仅修改 MT Inventory Weight 使用的服务端最大负重计算逻辑。

它适用于集成服务器(单人游戏 / 开放局域网)和专用服务器。

功能

  • 将 FTB Ranks 与 MT Inventory Weight 集成
  • 允许管理员使用 FTB Ranks 权限节点配置携带容量加成
  • 支持固定最大负重加成
  • 支持百分比加成
  • 支持直接倍率加成
  • 仅限服务端

支持的 FTB Ranks 权限节点

该附加组件读取以下 FTB Ranks 权限节点:

inventoryweight.maxweight.add
inventoryweight.maxweight.percent
inventoryweight.maxweight.multiplier

固定加成

/ftbranks node add vip inventoryweight.maxweight.add 50

效果为:

+50 最大负重

百分比加成

/ftbranks node add vip inventoryweight.maxweight.percent 25

效果为:

+25% 最大负重

倍率加成

/ftbranks node add vip inventoryweight.maxweight.multiplier 1.5

效果为:

1.5x 最大负重

计算公式

最终结果按以下方式计算:

最终最大负重 = (当前最大负重 + 增加值) * (1 + 百分比 / 100) * 倍率

示例:

当前最大负重: 100
增加值: 50
百分比: 25
倍率: 1.5
最终结果: (100 + 50) * 1.25 * 1.5 = 281.25

示例等级设置

/ftbranks node add default inventoryweight.maxweight.add 0
/ftbranks node add vip inventoryweight.maxweight.add 50
/ftbranks node add vip inventoryweight.maxweight.percent 10
/ftbranks node add elite inventoryweight.maxweight.add 100
/ftbranks node add elite inventoryweight.maxweight.percent 25
/ftbranks node add elite inventoryweight.maxweight.multiplier 1.5

你也可以直接在 config/ftbranks/ranks.snbt 中设置这些值:

vip {
    permissions: {
        "inventoryweight.maxweight.add": 50
        "inventoryweight.maxweight.percent": 10
    }
}

文档

完整文档位于:

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源