CurseForge · Minecraft mod
Modifier Tooltip Fix (Fabric)
Fixes incorrect equality checking in the modifier tooltip code
Quick answer
Which Modifier Tooltip Fix (Fabric) release should I use?
Modifier Tooltip Fix (Fabric) modifier-tooltip-fix-1.0.1+MC1.16.5.jar targets 1.17, 1.16.5 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Modifier Tooltip Fix (Fabric) required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Modifier Tooltip Fix (Fabric) modifier-tooltip-fix-1.0.1+MC1.16.5.jar need?
modifier-tooltip-fix-1.0.1+MC1.16.5.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Modifier Tooltip Fix (Fabric) without breaking your instance.
Built for Modifier Tooltip Fix (Fabric) modifier-tooltip-fix-1.0.1+MC1.16.5.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use modifier-tooltip-fix-1.0.1+MC1.16.5.jar. It targets 1.17, 1.16.5 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside modifier-tooltip-fix-1.0.1+MC1.16.5.jar. It opens that exact file at the source.
About this project
What does Modifier Tooltip Fix (Fabric) add?
The special equals style of attribute modifier tooltip used for attack damage & attack speed is not available when attribute modifiers are added via NBT (e.g. JSON recipes).
This mod changes that.
Example
The following command gives an Iron Sword with its default modifiers overridden by identical modifiers via NBT.
give @p minecraft:iron_sword{AttributeModifiers:[{Slot:"mainhand", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:5, Operation:0, UUID: [I;-885041709, 1683771192, -1533567981, -1556236849]},{Slot:"mainhand", AttributeName:"generic.attack_speed", Name:"generic.attack_speed", Amount:-2.4, Operation:0,UUID: [I;-98353636, 1098926181, -1340359474, -1752847197]}]}
The tooltip without this mod installed

The tooltip with this mod installed

Affected UUIDs
| Attribute Name | UUID |
|---|---|
| generic.attack_damage | CB3F55D3-645C-4F38-A497-9C13A33DB5CF [I;-885041709, 1683771192, -1533567981, -1556236849] |
| generic.attack_speed | FA233E1C-4180-4865-B01B-BCCE9785ACA3 [I;-98353636, 1098926181, -1340359474, -1752847197] |
When one of the UUIDs listed above is used by a modifier for the corresponding attribute, an equals style tooltip will be used. These UUIDs are the UUIDs used by the default modifiers, but a quirk of the vanilla code prevents the equals style being used for modifiers loaded from NBT. Mojang doesn’t seem to consider it a bug, but it bothered me, so I made a fix.
Note to Mod Devs
If you wish to include this fix in your own mod, you MUST use Loom’s include configuration to package this mod within your JAR. The mixin used in this mod cannot coexist with other copies of itself. I lack the resources to host a Maven, so I suggest you use JitPack.
Compatible Minecraft Versions
Modifier Tooltip Fix builds are marked with the Minecraft version they were built for, they will work for that version. However since Modifier Tooltip Fix consists only of 2 simple mixins, it is highly likely that a build is compatible with future versions of Minecraft. If the latest Modifier Tooltip Fix build does not work for the latest snapshot or release, leave a comment on this project and I will update it.
Project description from CurseForge.
Pick your setup
Modifier Tooltip Fix (Fabric) by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.16.5
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Modifier Tooltip Fix (Fabric) versions and loaders
modifier-tooltip-fix-1.0.1+MC1.16.5.jar
16 Jun 2021
modifier-tooltip-fix-1.0.0+MC1.16.5.jar
25 Apr 2021
Looking for an older file? The official CurseForge project page is in Resources.