跳到正文

FTB Ranks – MT Inventory Weight

作者:MEGATREX4

FTB Ranks InventoryWeight connects FTB Ranks with MT Inventory Weight, allowing server admins to grant flat, percent, or multiplier-based carry capacity bonuses through FTB Ranks meta keys.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

FTB Ranks InventoryWeight

FTB Ranks InventoryWeight is a server-side add-on for MT Inventory Weight and FTB Ranks.

It lets server admins give players more maximum inventory weight through FTB Ranks rank permission values.

This mod is not standalone.

Required Dependencies

This add-on requires:

FTB Ranks requires FTB Library and Architectury API. Make sure all of them are installed, or FTB Ranks will not load.

Server-side Only

FTB Ranks InventoryWeight is designed to run on the server.

It does not add client UI, keybinds, screens, HUD elements, or tooltips. It only modifies the server-side max weight calculation used by MT Inventory Weight.

This works for both an integrated server (single player / Open to LAN) and a dedicated server.

Features

  • Integrates FTB Ranks with MT Inventory Weight
  • Lets admins configure carry capacity bonuses using FTB Ranks permission nodes
  • Supports flat max-weight bonuses
  • Supports percentage bonuses
  • Supports direct multiplier bonuses
  • Server-side only

Supported FTB Ranks Permission Nodes

The add-on reads these FTB Ranks permission nodes:

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

Flat Bonus

/ftbranks node add vip inventoryweight.maxweight.add 50

Gives:

+50 max weight

Percent Bonus

/ftbranks node add vip inventoryweight.maxweight.percent 25

Gives:

+25% max weight

Multiplier Bonus

/ftbranks node add vip inventoryweight.maxweight.multiplier 1.5

Gives:

1.5x max weight

Formula

The final result is calculated like this:

final max weight = (current max weight + add) * (1 + percent / 100) * multiplier

Example:

Current max weight: 100
Add: 50
Percent: 25
Multiplier: 1.5
Final: (100 + 50) * 1.25 * 1.5 = 281.25

Example Rank Setup

/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

You can also set these directly in config/ftbranks/ranks.snbt:

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

Documentation

Full documentation is available in:

https://megatrex4.github.io/inventory-weight/guide/addons/ftb-ranks

常见问题

FTB Ranks – MT Inventory Weight 支持哪些 Minecraft 版本?

FTB Ranks – MT Inventory Weight 支持 Minecraft Java 版 1.20.1–26.1.2,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

FTB Ranks – MT Inventory Weight 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

MEGATREX4 的其他作品

查看全部 →