
Any Hat🎩
The best hat datapack ! Wear any item as a hat with a simple trigger command. It is easy to use and the most secure hat datapack for servers. Is updated and supports all versions 1.16-1.21.11 /hat (/trigger hat) vanilla,
Screenshots






About this Mod
🧢 [HATS] Datapack
Transform your accessories into stylish hats!
Hats by Ancar, is a datapack which allows you to wear any item as a hat. It is by far the best hat datapack for the following reasons.
The BEST Hat datapack :
- frequent updates
- light
- vanilla
- no cheats
- all vanilla hats
- dupe safe
▶ Youtube
👒 Wearable Items
Wear any accessory you find! Here are a few ideas:
| 🌸 Flowers | 📐 Stairs | 🧱 Blocks | ⚔️ Items |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
🎩 Special Hat Positions
Some items have custom positions!
💻 Commands
To wear an item as a hat, use:
/trigger hat (hold the item first)
🌍 Features
- Vanilla-Friendly ✔️
- Multiplayer Compatible ✔️
- Easy to Set Up ✔️
🛠️ Setup Instructions
- Move the datapack to the
datapacksfolder in your world directory. - Ignore the red error message.
- Enable the datapack, click Done, and start your world!
📝 Changelog
- Ported to minecraft 1.21.10 and used overlays
- Bugfix:
/trigger hatcommand not working.
Available Versions
How to Install Any Hat🎩 on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (26.2-rc-2).
Install Mod
Open the mod browser in the dashboard and search for "Any Hat🎩". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.2-rc-2, 26.2-rc-1, 26.2-pre-6 (+134 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Any Hat🎩 server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.2-rc-2). You can switch loaders with one click in the panel.
Is Any Hat🎩 compatible with datapack and fabric and forge and neoforge and quilt?
Any Hat🎩 officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 26.2-rc-2, 26.2-rc-1, 26.2-pre-6. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Any Hat🎩 – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Any Hat🎩 consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Any Hat🎩 with just one click on your server.



