跳到正文

Attribute Tooltip Fix

作者:Lytho

Fix tooltip rendering for attributes, when they are loading through NBT.

收藏

介绍

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

A simple mod to fix the tooltip rendering, when the attribute modifiers from an item are loaded through NBT. To achieve the correct tooltip you have to use the correct UUID’s for the attributes.

__________________________________________________

If you are using commands or something else where you need to add the UUID as NBT to add attributes, use these:

  • Attack Damage: [I;-885041709,1683771192,-1533567981,-1556236849]
  • Attack Speed: [I;-98353636,1098926181,-1340359474,-1752847197]

    __________________________________________________

Here is an example for a diamond sword: 
/give @p diamond_sword{AttributeModifiers:[{AttributeName:”generic.attack_damage”,Amount:6,Slot:mainhand,Name:”generic.attack_damage”,UUID:[I;-885041709,1683771192,-1533567981,-1556236849]},{AttributeName:”generic.attack_speed”,Amount:-2.4,Slot:mainhand,Name:”generic.attack_speed”,UUID:[I;-98353636,1098926181,-1340359474,-1752847197]}]} 1

__________________________________________________ 

If you are using KubeJS or another mod which let’s you define attributes directly through the UUID string, use these:

  • Attack Damage: CB3F55D3-645C-4F38-A497-9C13A33DB5CF
  • Attack Speed: FA233E1C-4180-4865-B01B-BCCE9785ACA3

__________________________________________________

Links

GitHub

Discord

Difference

常见问题

Attribute Tooltip Fix 支持哪些 Minecraft 版本?

Attribute Tooltip Fix 支持 Minecraft Java 版 1.18.2–1.20.1,共 3 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Attribute Tooltip Fix 怎么安装?

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

评论

登录后评论和评分

Lytho 的其他作品

查看全部 →