
ModsJava
Server /hat
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.




A simple mod that adds the command /hat
Take an item in your hand and enter the command /hat — voila, and the item is on your head!
Setting the language of messages.
English and Russian are already present in the mod code.
- language=en — English (default)
- language=ru — Russian
- language=custom — your own language that needs to be configured in the config.
#Hat Mod Configuration
command.hat.empty_hand=You must hold an item in your main hand\!
command.hat.players_only=This command can only be used by players\!
command.hat.replaced=Item replaced on your head\! Previous item returned to inventory.
command.hat.success=Item placed on your head\!
language=en
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 26.1, 26.1.1, 26.1.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 — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as ServerHat26.1+-1.2.jar — drop this file into the mods folder
- Download size: 8 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.