2

/testfor with item frames?? help.

vggs3e3's Avatar vggs3e38/3/18 3:12 pm history
2 emeralds 863 4
8/5/2018 1:23 pm
ShelLuser's Avatar ShelLuser
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's Avatar
vggs3e3
Level 1 : New Miner
0

Create an account or sign in to comment.

4

1
08/05/2018 1:23 pm
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
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.
2
08/03/2018 4:05 pm
Level 6 : Apprentice Engineer
TobyTapper
TobyTapper's Avatar
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
08/03/2018 4:32 pm
Level 1 : New Miner
vggs3e3
vggs3e3's Avatar
I know, I just forgot! Sorry! Currently using 1.12.2 Java Edition.
1
08/03/2018 5:02 pm
Level 6 : Apprentice Engineer
TobyTapper
TobyTapper's Avatar
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome