Minecraft Data Packs / Cosmetic

Hats for Single- and Multiplayer

  • check_circle Functions
  • 38,200 views, 9 today
  • 8,256 downloads, 3 today
  • 146
  • 147
  • 34
Required Resource Pack
Ercerus's Avatar Ercerus
Level 77 : Legendary Crafter
This datapack will no longer be updated!


This datapack adds cosmetic hats to Minecraft. The current version of the datapack is v6 and for the resource pack it is v6. After starting up your world, use the /reload command to get a chat message to acquire the command books to get the hats. Alternatively, you can also use the following commands:

Singleplayer or Server Operator:
/function ercerus:hats/get_operator_book
/trigger hat set 1or alternately, if you have operator rights:
/function ercerus:hats/get_non_operator_book
All the hats are remodeled carved pumpkins. A side effect of this is, that they will protect the player from aggravating enderman by looking at them. The pumpkin overlay effect also had to be removed for this, because otherwise the hats would be really annoying to wear. If you accidentally try to place one of the hats down onto the ground, a regular carved pumpkin will appear.

Modify the protection values of the hats
Drop the hat you want to modify onto the ground and click on the option you want to have inside the book. A sound and particle effect will appear, if the process was successful.

Important Information for Server Owners
There are two types of command books. One for server operators, which uses /function commands, and one for non-operator players, which uses /trigger commands. Even if non-operators manage to get hold of an operator book, they can not use it. Operator books allow the player to modify the protection values of hats, non-operator books do not have this feature.
This datapack allows players to get an infinite amount of carved pumpkins and written books. Written books can be sold to villagers for emeralds, so be aware of this before using this datapack.

This pack is compatible with 1.19 all the way down to 1.16.5. The resource pack will display as incompatible if you are using it on 1.18.2 and below, but it will work just fine.

Usage as part of your own creation
You have my permission to use this datapack, as well as the resource pack as part of your own creation. You do not need to ask me. Just credit me and provide an easily accessible link to this post here on Planet Minecraft. I would also appreciate it, if you would write a comment with a link to your creation.

Drop the datapack file into the folder called "datapacks" in your world save file. Add the resource pack file to the "recourcepacks" folder in your ".minecraft" folder. So basically the default installation process.

Hats for Single- and Multiplayer Minecraft Data Pack
CreditThe font used on the preview image of this forum post was made by Fredrick R Brennan and is called "Some Time Later". URL: https://www.dafont.com/some-time-later.font
CompatibilityMinecraft 1.16
toMinecraft 1.19

6 Update Logs

Update : by Ercerus 03/29/2023 5:52:57 amMar 29th, 2023

  • updated the resource pack to include the new atlases format, this will fix the missing textures on some hats

Create an account or sign in to comment.

LGSC team
03/29/2023 10:17 am
Level 61 : High Grandmaster Modder
LGSC team's Avatar
Guys, i figured out how to put the Hats on MOBS!

Type: /item replace entity @e[​type=minecraft:VILLAGER/PILLAGER/VINDICATOR/ZOMBIE/HUSK/SKELETON,distance=..2] armor.head with EXAMPLE FROM DATAPACK FOLDER:

minecraft:carved_pumpkin{CustomModelData:6263044,display:{Name:'{"text":"Antler","italic":"false","color":"gold"}'},AttributeModifiers:[{Amount:1d,Slot:"head",AttributeName:"minecraft:generic.armor",Operation:0,UUID:[​I;834516327,-2035079094,-1919604092,-1804883120],Name:"armor"}]} 1

You have to open datapack and search for hat properties, they located inside datapack folder Hats>data>ercerus>functions>hats>hat and then just copy text after give @p
03/28/2023 9:29 pm
This reply was removed by the poster or a moderator.
03/29/2023 4:18 am
Level 77 : Legendary Crafter
Ercerus's Avatar
You can use a /item command to put the hats onto villagers.
03/24/2023 12:25 am
Level 1 : New Crafter
mochado's Avatar
Hi, love the pack, but in the latest update, the textures are glitched and show up as missing textures.
08/25/2022 9:46 am
Level 1 : New Miner
Curbox's Avatar
It doesn´t work for me in version 1.19
08/26/2022 5:03 am
Level 77 : Legendary Crafter
Ercerus's Avatar
What part does not work?
Is the datapack listed when you run the command /datapack list ?
Can you get the book?
Do the hats show up as pumpkins?
06/27/2022 12:25 pm
Level 32 : Artisan Dragonborn Creeper
ZachTwistedDragonLord's Avatar
I think you play minecraft dugeons
04/25/2022 11:45 am
Level 1 : New Miner
JackHabibi's Avatar
03/15/2022 4:56 pm
Level 1 : New Miner
User4060381G's Avatar
User4060381G avatar
raga hello I tried to load the package in 1.18.1 and 1.18.2 I do /reload but it does not work tells me reload in progress please help me
Planet Minecraft


© 2010 - 2024