• Functions
  • 3,962 views • 1 today
  • 401 downloads • 0 today
  • 12
  • 9
  • 5
natural_power
Level 46 : Master Miner
16
Set any item or block to be your hat!

Simply hold an item run the command /trigger hat

The item that is currently in your head slot will be safely swapped to your hand



(Multiplayer friendly / Everyone is able to run the command)
CompatibilityMinecraft 1.18
Tags

  Have something to say?

fenixxxxxxxxxxxxx
04/08/2022 1:02 pm
Level 1 : New Miner
This dont works, i put this datapack in a server on 1.18.2 and the datapack dont works
1
natural_power
04/21/2022 11:14 am
Level 46 : Master Miner
Does it say anything when you try to run the command?

Also is the server on Apex? Cuz I had a problem on there before
1
natural_power
04/21/2022 11:21 am
Level 46 : Master Miner
Try run the following commands and see if it works:


/scoreboard players enable @a hat
/execute as @a if score @s hat matches 1.. run scoreboard players set @s hat 0
/trigger hat
/execute as @a if score @s hat matches 1.. run function hats:sethat

(If this works you can put them (not the /trigger hat) in repeating command blocks to make it work, but I'm looking into where servers mistreat it to not run these commands by themselves)
1
faIIow
03/30/2022 2:53 pm
Level 34 : Artisan Pixel Painter
simple and fun, thanks for making it!
(I think my favorite is when you have dynamic lighting on and wear a lantern on your head but it appears inside your head, so then it just looks like you're glowing from nowhere, it's great-)
2
natural_power
04/07/2022 10:45 am
Level 46 : Master Miner
Well thank you and you're welcome!

I'll make sure to try that lantern
1

Welcome