
DatapacksJava
Hat Trigger
Java data pack listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.
⬇ Download on Modrinth
Easily swap Mainhand and Helmet Slot
"Hat Trigger" allows you to equip any item on your Helmet Slot!
This way, you can put on a banner like Pillagers or create your own cosmetic helmets out of glass blocks, chests, or similar items.
Features
Use one of the following commands to swap your currently held item (mainhand) with the item on your helmet slot:
/trigger hat
/function hat:swap
Additional Information
- Singleplayer and Multiplayer
- Unequip the helmet item by holding nothing in your hand when using the command
- Item components (durability, enchantments, etc.) stay untouched
- This datapack does not require any resourcepacks or mods to function
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 26.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
File checked by MCModsHub
- Downloads as Hat Command v1.0.zip
- Download size: 3 KB
- Download link checked 7 Nov 2026 — working
These come from our own check of the pack file, not from the source page.