Minecraft Data Packs / Cosmetic

Hats for Single- and Multiplayer

  • check_circle Functions
  • 19,623 views, 49 today
  • 4,557 downloads, 18 today
  • 90
  • 80
  • 26
Required Resource Pack
Ercerus avatar Ercerus
Level 74 : Legendary Crafter
372
Update release to fix mipmap levels. Make sure to redownload the resource pack!

Description

This datapack adds cosmetic hats to Minecraft. The current version of the datapack is v4 and for the resource pack it is v3. 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
Non-Operator:
/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.

Compatibility
This pack is compatible with 1.18.2 all the way down to 1.16.5. The resource pack will display as incompatible if you are using it on 1.18.1 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.

Installation
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.18
Tags

3 Update Logs

Update to Version 4 : by Ercerus 03/05/2022 9:18:07 amMar 5th

  • updated the pack to the new datapack version number of 9
LOAD MORE LOGS

Create an account or sign in to comment.

1
04/25/2022 11:45 am
Level 1 : New Miner
JackIsOnPlanetMC
JackIsOnPlanetMC avatar
amazing
1
03/15/2022 4:56 pm
Level 1 : New Miner
User4060381G
User4060381G 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
1
01/18/2022 5:28 am
Level 4 : Apprentice Mage
WolfBlade 39
WolfBlade 39 avatar
could you make a pack that adds back items?! as well!
1
01/18/2022 2:00 pm
Level 74 : Legendary Crafter
Ercerus
Ercerus avatar
This is currently not possible due to the way Minecraft works.
1
03/04/2022 11:06 pm
Level 8 : Apprentice Explorer
MechaKillerRichMC
MechaKillerRichMC avatar
Will you update the Illager Fortress and Ships out on the ocean data packs for 1.18.2 with these links that I am going to send you?

https://jigsaw.jacobsjo.eu/?version=1_19_exp

https://gist.github.com/misode/45559d34627755ecaa52497daea83544
1
03/05/2022 8:54 am
Level 74 : Legendary Crafter
Ercerus
Ercerus avatar
Some day: Yes. But for now they will keep on replacing existing structures, as this would take a major code rewrite. But thank you for the links, they look really useful.
1
01/14/2022 7:46 pm
Level 23 : Expert Birb
m1n1m0th
m1n1m0th avatar
Data Pack: https://www.planetminecraft.com/data-pack/m1n1-s-hats-n-helms-data-pack/
Resource Pack: https://www.planetminecraft.com/texture-pack/m1n1-s-hats-n-helms-resource-pack/

We talked about it already, but I saw that you would like those who use your assets to leave a comment with the packs, so here it is.
1
01/06/2022 2:20 pmhistory
Level 13 : Journeyman Engineer
lolo2
lolo2 avatar
in the description you said that we could place the hats and get a carved pumpkin. To stop the bug, you could use any helmet with a tag(like {isfarmhat:1b}) and then detect whenever a player is wearing the helmet so that you can switch it with the current hats (using the /item command). You can probably use the same custommodeldata on the helmets.



i would've one that
2
01/05/2022 4:00 pm
Level 1 : New Miner
laureltrees
laureltrees avatar
Hey, thanks so much for the resource pack!

I've been using it fine with OptiFine, but when using it with a Fabric client (that uses Fabric alternatives that replace OptiFine functionality, like custom models) I get some weird issues with mipmapping for the whole game (mipmaps stop textures from looking grainy and ugly at large distances). It turns out that the texture for the halo seems to be the culprit (this is from my Minecraft log):

[21:25:50] [Worker-Main-5/WARN]: Texture ercerus:hat/halo with size 1x1 limits mip level from 4 to 0
[21:25:50] [Worker-Main-5/WARN]: minecraft:textures/atlas/blocks.png: dropping miplevel from 4 to 0, because of minimum power of two: 1

I assume from the log that the texture needs to be at least 8px x 8px in size to stop mipmapping from being limited to just level 0? I guess OptiFine does something differently and doesn't mind the small texture.

Would it be possible to fix this by simply making the halo texture a bit bigger? I realise this is a tiny bit inefficient because the halo texture is just one pixel for one color, but it would mean I could use the resource pack with Fabric mods instead of OptiFine. Everything else about the pack works fine with my Fabric client, it's literally just this single 1x1 texture somehow breaking a whole part of the game's rendering lmao.

Thanks for your help!!
2
01/05/2022 5:12 pm
Level 74 : Legendary Crafter
Ercerus
Ercerus avatar
Thank you for the detailed bug report. I did not notice this, because I always set my mipmap levels to 0. I just released an update for the resource pack to fix this issue.
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome