Skip to content

Attribute Tooltip Fix

By LythoOwner

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

290k downloads Updated

Last update on each platform

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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

📑 Overview

A Minecraft mod which fix tooltip rendering for attributes, when they are loading through NBT.

✏️ Usage

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]

Simple 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