Tool Trims Mod

fabric-api

A fabric port of JoeFly's Tool Trims datapack. Check the project page for more details.

Making it a mod allows a few improvements:

  • Recipes are now done through the vanilla smithing table and crafting recipe, so the toolsmithing table no longer exists.
  • The trim templates show up in the creative inventory and recipe viewers like EMI or REI
  • Loot tables are injected into instead of overwritten
  • Trident trims display on thrown tridents

Trimming tool in vanilla smithing table
Trim templates in recipe viewer Trims on thrown tridents

Upgrading from the Datapack

The mod contains backwards compatability mechanics for the datapack.

First, you should remove the datapack, as the mod and datapack are not intended to be used in tandem (It doesn't matter if you remove the datapack before or after installing the mod).

If it detects the datapack was previously used, it will enable the tooltrims_deleteToolsmithingTable gamerule, which destroys smithing tables within 6 blocks of players and drops its ingredients (2 copper and 4 planks). This can be reversed using /gamerule tooltrims_deleteToolsmithingTable false. You can also enable the legacy resource pack, which makes templates and toolsmithing tables look right before they are upgraded or deleted.

You can use the command /tooltrims upgrade to upgrade the tool or template you are holding so it uses the code trim system instead of the datapack trim system. Templates from the datapack cannot be used in the smithing table until you upgrade them. For tools, the difference is only noticeable if you look at the NBT/component data or if you try to re-trim the tool, in which case both the old and new trims will show up in the tooltip.

Compatability

Compatible with EMI (trimming recipes show up) and Enchancement (crossbow texture works correctly). Currently incompatible with Trimmable Tools.

Credits

The Enchancement compat textures were created by doctor4t and cybercat5555 for the mod Enchancement, and were edited and used with permission.

All other textures were created or otherwise owned by JoeFly and used with permission.

Future

For now I support the latest version of Minecraft (currently 1.21.8) and their corresponding hotfix versions (1.21.6-7), plus 1.21.1. All other versions are unsupported. All issues pertaining to unsupported versions will not be addressed.

It is possible, although not promised, that in the future there will be trims for modded tools.


Please report issues on my repository and not to JoeFly.


Project members

ThePotatoArchivist

Developer

JoeFly

Texture Artist & Original Concept Author

Details

Licensed Multiple
Published 9 months ago
Updated a month ago