I am working on a Prison Escape adventure map and need help to make a key scanner. I have spawned an armor stand and want to use this command to check if the player has iron horse armor named Key in his inventory:
/execute @e[name=KeyScanner] ~ ~ ~ /testfor @p[r=3] {Inventory:[{id:minecraft:iron_horse_armor,tag:{display:{Name:"Key"}}}]}
As I am relatively new to commands, I don`t know what`s wrong with it. Please help me!
I`m on 1.8.8
/execute @e[name=KeyScanner] ~ ~ ~ /testfor @p[r=3] {Inventory:[{id:minecraft:iron_horse_armor,tag:{display:{Name:"Key"}}}]}
As I am relatively new to commands, I don`t know what`s wrong with it. Please help me!
I`m on 1.8.8
Create an account or sign in to comment.