I need to know how to detect if an armour stand has a helmet on its head. By that, I mean any item, such as a player head or other item. I already tested something like :
execute as @e[type=armor_stand,nbt:{ArmorItems:[{},{},{},{id:"player_head",Count:1b}]}]
But unfortunately, this is not working. How can I make it work?
(I'm porting this to a data pack if anyone is curious)
I am in 1.16.5.