So I'm working on this thing that I need to detect if a player is wearing a certain skull and set their score to 1 if they are. I am using this command: scoreboard players set @a YoshiHead 1 {Inventory:[{id:minecraft:skull,Damage:3s,Slot:103b,tag:{SkullOwner:"Yoshi"}}]} The command block outputs as the dataTag doesn't match but I have checked it multiple times and I can't figure out what is wrong. Thanks for any help!
The Meaning of Life, the Universe, and Everything.
Join Date:
5/22/2015
Posts:
50
Location:
Atlantis
Minecraft:
NeunEinser
Member Details
It's SkullOwner:{Name:"Yoshi"} instead of SkullOwner:"Yoshi" (minecraft automatically creates a compund tag with the player's name, the player's UUID and the texture as well)
So I'm working on this thing that I need to detect if a player is wearing a certain skull and set their score to 1 if they are. I am using this command: scoreboard players set @a YoshiHead 1 {Inventory:[{id:minecraft:skull,Damage:3s,Slot:103b,tag:{SkullOwner:"Yoshi"}}]} The command block outputs as the dataTag doesn't match but I have checked it multiple times and I can't figure out what is wrong. Thanks for any help!
Hey Zender, Horwitz from PMC. I am not the best at this, but would it be 3b instead of 3s?
Hey! Check out my Planet Minecraft page! http://www.planetminecraft.com/member/horwitz1011/
No, I've already tried that and I'm pretty sure that you use 's' for damage values.
oh ok. Im sorry, I am not the best at this /testfor stuff... Sorry!
Hey! Check out my Planet Minecraft page! http://www.planetminecraft.com/member/horwitz1011/
That's fine.
It's SkullOwner:{Name:"Yoshi"} instead of SkullOwner:"Yoshi" (minecraft automatically creates a compund tag with the player's name, the player's UUID and the texture as well)
System.out.println("Hello world")