Attributes UI 图标

Attributes UI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/attributes-ui
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: equipment game-mechanics

资源介绍

Attributes UI

Attributes UI is a client-side NeoForge mod that adds a clean, configurable attributes table to the left side of the player inventory.

It is designed for modded setups where players need to see both vanilla and custom attributes without opening extra menus or relying on hardcoded compatibility.

Features

  • Shows player attributes directly from the inventory screen
  • Supports vanilla and custom modded attributes
  • Configurable rows through config/attributesui-client.toml
  • Toggle button inside the inventory player model area
  • Toggle state persists across inventory reopens and game restarts
  • Automatically hides rows when their value is not above the configured threshold
  • Supports blank separator rows for grouping sections
  • Supports plain numbers and percent-style display
  • Supports display-only value transforms with Deduct, Divide, and Multiply
  • Client-side only; it does not change actual player attributes

Default Attributes

The default generated config includes:

  • generic.max_health
  • generic.armor
  • generic.armor_toughness
  • generic.attack_damage
  • generic.attack_speed

Configuration

After launching the game once, edit:

config/attributesui-client.toml

Each attribute entry is an object:

attributes = [
  { Name = "Max Health", Attribute = "generic.max_health", Deduct = 0.0, Divide = 0.0, Multiply = 0.0, ShowAbove = 0.0, Type = "plain" },
  { Name = "Armor", Attribute = "generic.armor", Deduct = 0.0, Divide = 0.0, Multiply = 0.0, ShowAbove = 0.0, Type = "plain" }
]

Custom Attribute Example

attributes = [
  { Name = "Ability Haste", Attribute = "spell_power:haste", Deduct = 100.0, Divide = 0.0, Multiply = 0.0, ShowAbove = 100.0, Type = "percent" },
  { },
  { Name = "Arcane Spell Power", Attribute = "spell_power:arcane", Deduct = 0.0, Divide = 0.0, Multiply = 0.0, ShowAbove = 1.0, Type = "plain" },
  { Name = "Spell Critical Damage", Attribute = "spell_power:critical_damage", Deduct = 0.0, Divide = 0.0, Multiply = 100.0, ShowAbove = 150.0, Type = "percent" }
]

Config Fields

  • Name: Display name shown in the table
  • Attribute: Attribute id to read from the player
  • Deduct: Subtracts from the shown value only
  • Divide: Divides the shown value when greater than 0
  • Multiply: Multiplies the shown value when greater than 0
  • ShowAbove: Shows the row only when the real attribute value is greater than this number
  • Type: plain or percent
  • { }: Adds a blank separator row in the UI

Display Transforms

Transforms are visual only. The mod never changes the real attribute value.

The display value is calculated as:

display = raw - Deduct
if Divide > 0: display = display / Divide
if Multiply > 0: display = display * Multiply

If Type is percent, the mod adds % after the final displayed value.

For example, if a custom attribute returns 105 and the config has Deduct = 100 and Type = "percent", the UI shows 5%.

Compatibility

Attributes UI reads attributes by id, so it can support custom attributes from other mods as long as they are registered as normal Minecraft attributes.

The mod is client-side and intended for NeoForge 1.21.1.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Meticulous

价格:0 墨喵币
下载量:0

查看详情
Minecraft But It's Impossible to Die

价格:0 墨喵币
下载量:0

查看详情
Vanilla RPC

价格:0 墨喵币
下载量:0

查看详情
Blasc Survival Overhaul

价格:0 墨喵币
下载量:0

查看详情