
DatapacksJava
Hat Trigger
Swap Mainhand with Helmet Slot with a /trigger command. Free Minecraft Java datapack for 26.2.
⬇ 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
Verified by MCModsHub
- Downloads as Hat Command v1.0.zip
- Download size: 3 KB
- Download link checked 7 Sept 2026 — working
These come from our own check of the pack file, not from the source page.