2

/testfor with item frames?? help.

vggs3e3 •8/3/18 3:12 pm history
•
946
•
8/5/2018 1:23 pm
So, I want to test for an item in an item frame, for example a diamond sword, and this is what I have but it says:

entity.ItemFrame.name did not match the required data structure. If someone could fix this command and help, I would greatly appreciate it! I've looked it up and the only command I could find was this:

Using 1.12.2 Java Edition





/testfor @e[x=-157,y=73,z=308,type=Item_Frame] {Item:{id:diamond_sword}}​

Posted by
vggs3e3
Level 1 : New Miner
0

  Have something to say?

Join • Sign in

4

ShelLuser
• 08/05/2018 1:23 pm
He/Him • Level 61 : High Grandmaster Senpai
In case you're wondering about my vote up... this was just the thread I needed to take my mind of things ;)

Unfortunately it also wasn't as big of a challenge I'd hoped for but you still get the emerald :-)

Keyword: namespace. Always use the proper namespace when you're addressing items, entities or blocks and such. This will become even more important with 1.13.

SO, the solution to your problem (only sharing the NBT): {Item:{id:"minecraft:diamond_sword"}}

That will fix it.
1
TobyTapper
• 08/03/2018 4:05 pm
• Level 6 : Apprentice System
You will have to give your Minecraft version your using before anyone can give you the correct command, but I'd like a answer to this as well.
2
vggs3e3
• 08/03/2018 4:32 pm
• Level 1 : New Miner
I know, I just forgot! Sorry! Currently using 1.12.2 Java Edition.
1
TobyTapper
• 08/03/2018 5:02 pm
• Level 6 : Apprentice System
1

Welcome