Modifier Tooltip Fix (Fabric)

Quick rating

Modifier Tooltip Fix (Fabric)

No reviews yet

Fixes incorrect equality checking in the modifier tooltip code

No Theme
No Genre
QoL & Tweaks
Bug Fixes
Mod Loaders
Forge
Fabric
Minecraft
1.17

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
modifier-tooltip-fix-1.0.1+MC1.16.5.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

 

Screenshots

Gallery

  • Tooltip with this mod installed
    Tooltip with this mod installed
  • Tooltip without this mod installed
    Tooltip without this mod installed

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~4,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works