2

Need a Command for Potion Effect on Custom Heads

Jaxonator69 8/7/23 2:41 am history
381
8/8/2023 2:49 pm
I'm making a Prop Hunt-style map where hiders blend in with the environment using custom heads, and I need a command that puts the Invisibility Effect on all players wearing any custom head. I tried just googling it, but everything I saw had a specific custom head in the command, and I need it to apply to all custom heads. Can anyone please help?
Posted by
Jaxonator69
Level 22 : Expert Architect
3

  Have something to say?

JoinSign in

2

imalittlhigh
08/08/2023 10:25 am
Level 67 : High Grandmaster Sweetheart Stack
effect give @a[nbt={Inventory:[{Slot:103b,id:"minecraft:player_head"}]}] minecraft:invisibility 1 1

this gives everyone with a playerhead on their head invisibility

Only custom heads is not possible, at least i dont know how but since they are player heads this could be what your looking for ^^
1
Jaxonator69
08/08/2023 2:49 pm
Level 22 : Expert Architect
Thank you so much! I'll be sure to try this.
1

Welcome