CIT Resewn brings MCPatcher's Custom Item Textures (CIT) back as a standalone Fabric mod – no OptiFine needed. CIT lets resource packs change how items look when certain conditions are met, and CIT Resewn stays backwards compatible with older OptiFine/MCPatcher packs while expanding the available types and conditions.
Available for Fabric on Minecraft 1.17 - 1.21.1. It's mainly client-side, but if you're assembling a pack for players on your Minecraft hosting, the panel installs it with one click too.