1

CommandBlock testfor Error ( 1.9 )

Al00X •5/18/16 9:49 am
•
378
•
5/18/2016 12:42 pm
Hi ,
MC 1.9

i'm creating a puzzle world , i decided to use "ItemFrame" and keys to open a door
i put a CommandBlock with command :
testfor @e[type=ItemFrame,r=3] {Item:{id:369s,tag:{display:{Name:"Key#1"}}}}

When i activate it , error comes in Output :
entity.ItemFrame.name did not match the required data structure

I used this command in MC 1.8 and worked but i dont know what is the problem with 1.9

Did syntaxes changed ?? What i have to type instead of this command ?

Thanks,
Posted by
Al00X
Level 1 : New Miner
0

  Have something to say?

Join • Sign in

4

Lexxer
• 05/18/2016 11:18 am
• Level 29 : Expert Caveman
Is the item named 'Key#1' in an ItemFrame on a wall?

Becaus if, you would need a command like the following:
/testfor @e[type=ItemFrame] {TileX:X,TileY:Y,TileZ:Z,Item:{tag:{display:{Name:"Key#1"}}}}

Where X,Y,Z are the coordinates, where your ItemFrame would be
1
Al00X
• 05/18/2016 12:42 pm
• Level 1 : New Miner
Thanks men , worked )
1
Lexxer
• 05/18/2016 10:23 am
• Level 29 : Expert Caveman
Try
testfor @e[type=Item,r=3] {Item:{id:"minecraft:item_frame",tag:{display:{Name:"Key#1"}}}}

This should work.
1
Al00X
• 05/18/2016 10:32 am
• Level 1 : New Miner
Dude , thx for the answer, Error fixed, but cant find ItemFrame ...
1

Welcome