HomeJavaModsItem Regex
Item Regex
ModsJava

Item Regex

by dbrighthd · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1–26.2⬇ Download for 1.21.5–1.21.11
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Item Regex — screenshot 1

Allows for using regex for selecting item models with the vanilla format!

Normally, you would neet to list multiple exact strings to allow for variation Cases for "Darksaber Hilt" and "The Darksaber Hilt"

But with this mod, you can use regex, iregex, pattern or ipattern in its place!

Regular expression allowing for any character to surround "Darksaber Hilt"

Because of the way the mod reads from the already existing json format, editing your packs to work with this mod won't break them with vanilla! If you want to, you can keep the cases you had before and in addition add a regex check. That way if someone were to use your texture pack in vanilla, it would still read the normal names correctly. (also who would name an item "iregex:.*Darksaber Hilt.*" on accident?)

Vanilla-supported names along with a regex name!

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more