玩家属性显示
此模组添加了一个面板,用于显示属性值列表。
为了获取准确的数值,此模组需要客户端与服务器之间的通信,因此在多人游戏环境中,它必须安装在客户端和服务器两端。
此模组包含服务器配置和客户端配置:
- 如果服务器配置启用,所有玩家将显示相同的属性集。也可以为所有玩家禁用该面板。
- 如果服务器配置禁用,每个玩家可以单独配置自己的面板。
- 你可以在客户端配置中更改属性名称、值和详细说明的颜色。
- 你可以在客户端配置中或通过简单地点击面板来启用或禁用显示详细信息。
打开面板的默认键位是 'Tab'。
列表配置
面板最多可以显示 13 个属性。
在每个条目中,必须提供属性的标识符。
你可以选择性地为值添加前缀和单位。
你可以配置显示值的数字格式:
- 原始(Raw):默认值。值按原样显示。
- 百分比(Percentage):值乘以 100 并添加 % 符号。
你可以配置值的小数位数,范围为 0 到 5(含)。数值会进行四舍五入。
如果在显示之前需要对值进行一些计算,你可以提供一个数学表达式。使用 'x' 代表原始值。遗憾的是,目前不支持替换其他动态值。
依赖项
必需
可选
支持的语言
- English (United States)
- English (United Kingdom)
- Cantonese (Hong Kong)
- Chinese (Traditional Chinese)
- Chinese (Simplified Chinese)
计划
- 允许固定属性并在屏幕上直接显示其当前值,而无需面板。(可能性较低)
- 添加韩语和日语翻译。(拖延中)
- 允许玩家使用 Json 添加自定义属性名称翻译。
此模组仅适用于 Fabric。目前没有制作 Forge/NeoForge 版本的计划。
Player Attribute Display
This mod adds a panel that displays a list of attribute values.
In order to obtain accurate values, this mod requires client-server communication, so it MUST be installed on BOTH the client and server in multiplayer environments.
This mod includes a server config and a client config.
- If the server config is enabled, all players will display the same set of attributes. The panel can be disabled for all players as well.
- If the server config is disabled, each player can configure their own panel individually.
- You can change the colour of the attribute names, values and details in the client config.
- You can enable or disable showing details in the client config or by simply clicking the panel.
The default keybind to open the panel is 'Tab'.
List Configuration
The panel can display up to 13 attributes at most.
In each entry, the identifier of the attribute must be provided.
You can optionally add a prefix and a unit to the value.
You can configure the number format of the displayed value:
- Raw: Default. The value is displayed as-is.
- Percentage: The value is multiplied by 100 and the % symbol is added.
You can configure the number of decimal places of the value, which ranges from 0 to 5 (inclusive). The number is rounded off.
If the value requires some calculations before being displayed, you can provide a mathematical expression. Use 'x' to represent the original value. Unfortunately, substituting other dynamic values is not supported at the moment.
Dependencies
Required
Optional
Supported Languages
- English (United States)
- English (United Kingdom)
- Cantonese (Hong Kong)
- Chinese (Traditional Chinese)
- Chinese (Simplified Chinese)
Plan
- Allow pinning attributes and displaying their current values on screen without a panel. (less likely)
- Add translations for Korean and Japanese. (procrastinating)
- Allow players to add custom attribute name translations using Json.
This mod is for fabric only. There is currently no plan to make a forge/neoforge version.
评论 0
登录后参与评分
还没有评论,来抢沙发吧