1

Testfor custom named item in inventory

michi7702's Avatar michi77024/3/20 7:53 am history
1 emeralds 91
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
Posted by michi7702's Avatar
michi7702
Level 1 : New Miner
0

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome