/testfor finding item in item frame help?Test if player has specific item in specific hotbar slot [1.8]How to do testfor with different mapsMinecraft 1.9.2 Command /testfor SelectedItem. Need HelpExploding arrow command not workingMy command for minecraft executing a command at an entity won't workMinecraft– How to detect for player with custom headtestfor lapis lazuli anywhere in inventoryI need /testfor helpTestfor selected item?/testfor item in item frame help with code

Dual frame in Riemannian metrics.

Subnumcases as a part of align

Can an Iranian citizen enter the USA on a Dutch passport?

Is it normal for gliders not to have attitude indicators?

Copper as an adjective to refer to something made of copper

The selling of the sheep

How to replace space with '+' symbol in a triangular array?

How can I obtain and work with a Platonic dodecahedron?

How to speed up large double sums in a table?

What does the phrase "go for the pin" mean here?

Two denim hijabs

Why increasing of the temperature of the objects like wood, paper etc. doesn't fire them?

What is the thing used to help pouring liquids called?

How long did it take Captain Marvel to travel to Earth?

What does the copyright in a dissertation protect exactly?

Explaining intravenous drug abuse to a small child

Why are condenser mics so much more expensive than dynamics?

Why would a military not separate its forces into different branches?

Can anyone identify this unknown 1988 PC card from The Palantir Corporation?

Can I combine SELECT TOP() with the IN operator?

Is there precedent or are there procedures for a US president refusing to concede to an electoral defeat?

Given a safe domain, are subdirectories safe as well?

What does のそ mean on this picture?

How to deal with employer who keeps me at work after working hours



/testfor finding item in item frame help?


Test if player has specific item in specific hotbar slot [1.8]How to do testfor with different mapsMinecraft 1.9.2 Command /testfor SelectedItem. Need HelpExploding arrow command not workingMy command for minecraft executing a command at an entity won't workMinecraft– How to detect for player with custom headtestfor lapis lazuli anywhere in inventoryI need /testfor helpTestfor selected item?/testfor item in item frame help with code






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Here's the code that sees if there's a book called Keys in the item frame.



/testfor @e[type=ItemFrame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


When I put this in I get the error:



[18:09:28] entity.ItemFrame.name did not match the required data structure


Can someone help fix my command?










share|improve this question






















  • Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

    – MBraedley
    Jul 11 '15 at 0:15











  • @MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

    – Chickenator
    Jul 11 '15 at 8:42











  • It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

    – MBraedley
    Jul 11 '15 at 13:05












  • @MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

    – Chickenator
    Jul 11 '15 at 18:23






  • 1





    @MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

    – SirBenet
    Aug 23 '15 at 11:42

















1















Here's the code that sees if there's a book called Keys in the item frame.



/testfor @e[type=ItemFrame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


When I put this in I get the error:



[18:09:28] entity.ItemFrame.name did not match the required data structure


Can someone help fix my command?










share|improve this question






















  • Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

    – MBraedley
    Jul 11 '15 at 0:15











  • @MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

    – Chickenator
    Jul 11 '15 at 8:42











  • It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

    – MBraedley
    Jul 11 '15 at 13:05












  • @MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

    – Chickenator
    Jul 11 '15 at 18:23






  • 1





    @MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

    – SirBenet
    Aug 23 '15 at 11:42













1












1








1


1






Here's the code that sees if there's a book called Keys in the item frame.



/testfor @e[type=ItemFrame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


When I put this in I get the error:



[18:09:28] entity.ItemFrame.name did not match the required data structure


Can someone help fix my command?










share|improve this question














Here's the code that sees if there's a book called Keys in the item frame.



/testfor @e[type=ItemFrame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


When I put this in I get the error:



[18:09:28] entity.ItemFrame.name did not match the required data structure


Can someone help fix my command?







minecraft minecraft-commands






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 10 '15 at 17:12









ChickenatorChickenator

1951415




1951415












  • Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

    – MBraedley
    Jul 11 '15 at 0:15











  • @MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

    – Chickenator
    Jul 11 '15 at 8:42











  • It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

    – MBraedley
    Jul 11 '15 at 13:05












  • @MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

    – Chickenator
    Jul 11 '15 at 18:23






  • 1





    @MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

    – SirBenet
    Aug 23 '15 at 11:42

















  • Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

    – MBraedley
    Jul 11 '15 at 0:15











  • @MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

    – Chickenator
    Jul 11 '15 at 8:42











  • It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

    – MBraedley
    Jul 11 '15 at 13:05












  • @MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

    – Chickenator
    Jul 11 '15 at 18:23






  • 1





    @MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

    – SirBenet
    Aug 23 '15 at 11:42
















Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

– MBraedley
Jul 11 '15 at 0:15





Works fine for me. I copied the command you provided verbatim and, when in range, I get the message Found entity.ItemFrame.name (because the item frame itself doesn't have a name). Do you have other item frames nearby?

– MBraedley
Jul 11 '15 at 0:15













@MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

– Chickenator
Jul 11 '15 at 8:42





@MBraedley Having just a nearby item frame shouldn't matter. Only having a nearby on with the writable book in it, and there are non of those nearby.

– Chickenator
Jul 11 '15 at 8:42













It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

– MBraedley
Jul 11 '15 at 13:05






It does matter, at least for /testfor (and some other commands) because you're trying to match data tags. I see the same error you're seeing when I have a second item frame with something else in it.

– MBraedley
Jul 11 '15 at 13:05














@MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

– Chickenator
Jul 11 '15 at 18:23





@MBraedley yeah I have 2 item frames, one with nothing in it. Maybe that's the problem then :/

– Chickenator
Jul 11 '15 at 18:23




1




1





@MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

– SirBenet
Aug 23 '15 at 11:42





@MBraedley It should still give a success output with stats or a comparator, but the command block's output window (which only stores 1 output line) may be overwritten if the one that doesn't match is tested second.

– SirBenet
Aug 23 '15 at 11:42










2 Answers
2






active

oldest

votes


















1














You used the wrong entity name. A hanging itemframe is not called ItemFrame but item_frame.



So, the following command would work:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


Please note: this command checks the name given to an item. You are essentially looking for a writable book that has been renamed using an anvil.
If your goal is however to check for a closed book with a title you should use the following command:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:written_book,tag:[title:Keys][2]





share|improve this answer




















  • 1





    This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

    – Skylinerw
    Jan 22 '17 at 19:44











  • @Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

    – user254948
    Feb 12 '17 at 16:05


















-1














This is actually a command that troubled me for a long time too! But this command worked for me: /testfor @e[type=ItemFrame] TileX:0,TileY:5,TileZ:1,Direction:2b,Item:id:276s,ItemRotation:0b Give it a try. It should work! And you should be able to recognise the ID, as the command you put in above is fairly complex. You seem to be a redstone geek like me. xD






share|improve this answer


















  • 2





    This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

    – user254948
    Jun 9 '16 at 19:04












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f227457%2ftestfor-finding-item-in-item-frame-help%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You used the wrong entity name. A hanging itemframe is not called ItemFrame but item_frame.



So, the following command would work:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


Please note: this command checks the name given to an item. You are essentially looking for a writable book that has been renamed using an anvil.
If your goal is however to check for a closed book with a title you should use the following command:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:written_book,tag:[title:Keys][2]





share|improve this answer




















  • 1





    This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

    – Skylinerw
    Jan 22 '17 at 19:44











  • @Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

    – user254948
    Feb 12 '17 at 16:05















1














You used the wrong entity name. A hanging itemframe is not called ItemFrame but item_frame.



So, the following command would work:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


Please note: this command checks the name given to an item. You are essentially looking for a writable book that has been renamed using an anvil.
If your goal is however to check for a closed book with a title you should use the following command:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:written_book,tag:[title:Keys][2]





share|improve this answer




















  • 1





    This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

    – Skylinerw
    Jan 22 '17 at 19:44











  • @Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

    – user254948
    Feb 12 '17 at 16:05













1












1








1







You used the wrong entity name. A hanging itemframe is not called ItemFrame but item_frame.



So, the following command would work:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


Please note: this command checks the name given to an item. You are essentially looking for a writable book that has been renamed using an anvil.
If your goal is however to check for a closed book with a title you should use the following command:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:written_book,tag:[title:Keys][2]





share|improve this answer















You used the wrong entity name. A hanging itemframe is not called ItemFrame but item_frame.



So, the following command would work:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:writable_book,tag:display:Name:"Keys"


Please note: this command checks the name given to an item. You are essentially looking for a writable book that has been renamed using an anvil.
If your goal is however to check for a closed book with a title you should use the following command:



/testfor @e[type=item_frame,r=10] Item:id:minecraft:written_book,tag:[title:Keys][2]






share|improve this answer














share|improve this answer



share|improve this answer








edited 23 mins ago









Glorfindel

6751618




6751618










answered Jun 9 '16 at 19:00









user254948user254948

21614




21614







  • 1





    This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

    – Skylinerw
    Jan 22 '17 at 19:44











  • @Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

    – user254948
    Feb 12 '17 at 16:05












  • 1





    This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

    – Skylinerw
    Jan 22 '17 at 19:44











  • @Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

    – user254948
    Feb 12 '17 at 16:05







1




1





This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

– Skylinerw
Jan 22 '17 at 19:44





This is NBT, not JSON. The : character is not a special character and does not break syntax. Strings do not require quotation marks unless the value breaks syntax or declares a different datatype, which isn't the case here. Adding quotes will not fix the command at all.

– Skylinerw
Jan 22 '17 at 19:44













@Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

– user254948
Feb 12 '17 at 16:05





@Skylinerw Weird, I could of sworn I tested it. But I might of done it on a server, could of possibly been a plugin...I'll update my answer.

– user254948
Feb 12 '17 at 16:05













-1














This is actually a command that troubled me for a long time too! But this command worked for me: /testfor @e[type=ItemFrame] TileX:0,TileY:5,TileZ:1,Direction:2b,Item:id:276s,ItemRotation:0b Give it a try. It should work! And you should be able to recognise the ID, as the command you put in above is fairly complex. You seem to be a redstone geek like me. xD






share|improve this answer


















  • 2





    This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

    – user254948
    Jun 9 '16 at 19:04
















-1














This is actually a command that troubled me for a long time too! But this command worked for me: /testfor @e[type=ItemFrame] TileX:0,TileY:5,TileZ:1,Direction:2b,Item:id:276s,ItemRotation:0b Give it a try. It should work! And you should be able to recognise the ID, as the command you put in above is fairly complex. You seem to be a redstone geek like me. xD






share|improve this answer


















  • 2





    This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

    – user254948
    Jun 9 '16 at 19:04














-1












-1








-1







This is actually a command that troubled me for a long time too! But this command worked for me: /testfor @e[type=ItemFrame] TileX:0,TileY:5,TileZ:1,Direction:2b,Item:id:276s,ItemRotation:0b Give it a try. It should work! And you should be able to recognise the ID, as the command you put in above is fairly complex. You seem to be a redstone geek like me. xD






share|improve this answer













This is actually a command that troubled me for a long time too! But this command worked for me: /testfor @e[type=ItemFrame] TileX:0,TileY:5,TileZ:1,Direction:2b,Item:id:276s,ItemRotation:0b Give it a try. It should work! And you should be able to recognise the ID, as the command you put in above is fairly complex. You seem to be a redstone geek like me. xD







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 19 '15 at 19:53









ALXALX

569214




569214







  • 2





    This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

    – user254948
    Jun 9 '16 at 19:04













  • 2





    This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

    – user254948
    Jun 9 '16 at 19:04








2




2





This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

– user254948
Jun 9 '16 at 19:04






This is a rather bad answer. You suggest a command that suddenly is location-bound rather than radius. In addition to that, your command adds extra checks for direction and rotation yet removes the check that the question asker had in it, the check of the title. Also not sure where you got the 276s but it does not match the item specified in the original question (Curiously enough, your command can be found using google. )

– user254948
Jun 9 '16 at 19:04


















draft saved

draft discarded
















































Thanks for contributing an answer to Arqade!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f227457%2ftestfor-finding-item-in-item-frame-help%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу