2
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}}
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}}
Create an account or sign in to comment.
4
1
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.
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.
2
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.
1
I know, I just forgot! Sorry! Currently using 1.12.2 Java Edition.
1
Did a little digging, this is old but it might help:
https://gaming.stackexchange.com/questions/227457/testfor-finding-item-in-item-frame-help
https://gaming.stackexchange.com/questions/227457/testfor-finding-item-in-item-frame-help