How do I test for a named item in a players inventory? (Minecraft 1.13)How to test for an hold item name in Minecraft?Testing for an item in inventory with custom nameTest for anything but a specific item in a chestMy command for minecraft executing a command at an entity won't workHow to clear a player's inventory he has two of the same unstackable item in inventory?How do you setblock a command block that testsfor a named item in a player's inventory?Minecraft 1.13.1 Inventory Count NBT TagClearing a Custom Lore Item from inventory Minecraft 1.13How to test for any mob death w/o scoreboardHow do I edit NBT tags of inventory items?How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?(Java Minecraft 1.13) Can I remove the shadow on an item's name?

Why limit to revolvers?

Is it rude to refer to janitors as 'floor people'?

What is this old "lemon-squeezer" shaped pan

Capacitor with specific self-resonant frequency?

Is 7000 words too long for a chapter?

In special relativity is mass just a measure of all other energy than kinetic?

When to ask for constructive criticism?

What systems of robust steganography are out there?

Is it possible to cast two 9th level spells without taking a long rest in 5e?

Teferi's Time Twist on creature with +1/+1 counter

Is dividends exclusively a part of earnings?

Clarification on defining FFT bin sizes

What's the phrasal verb for carbonated drinks exploding out of the can after being shaken?

Getting fresh water in the middle of hypersaline lake in the Bronze Age

Credit card stolen every 1-2 years. What am I doing wrong?

What impact would a dragon the size of Asia have on the environment?

What's the meaning of こそ in this sentence?

Why aren't globular clusters disk shaped

FPGA CPU's, how to find the max speed?

Sending a photo of my bank account card to the future employer

Project Euler, problem # 9, Pythagorean triplet

Is there a good program to play chess online in ubuntu?

Why run a service as a system user?

I do not have power to all my breakers



How do I test for a named item in a players inventory? (Minecraft 1.13)


How to test for an hold item name in Minecraft?Testing for an item in inventory with custom nameTest for anything but a specific item in a chestMy command for minecraft executing a command at an entity won't workHow to clear a player's inventory he has two of the same unstackable item in inventory?How do you setblock a command block that testsfor a named item in a player's inventory?Minecraft 1.13.1 Inventory Count NBT TagClearing a Custom Lore Item from inventory Minecraft 1.13How to test for any mob death w/o scoreboardHow do I edit NBT tags of inventory items?How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?(Java Minecraft 1.13) Can I remove the shadow on an item's name?






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








0















So I'm trying to make a command that tests for a named item in a players inventory, and executes if they have that item. I know that you can test for an item type, but how do I make it test for a name too? Please bear in mind: I am trying to figure this out for Minecraft 1.13, not any previous versions.



*Edit: I have already tried this command with no success:



execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick""]] run say hi



Edit 2: So after some testing I think it has to do with the attribute modifiers or text color I'm using with the name. Any ideas?










share|improve this question
























  • Please search before asking or at least look at the question list on the right. The first question there already answers this.

    – Fabian Röling
    Sep 23 '18 at 10:22






  • 2





    @FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

    – Unionhawk
    Sep 28 '18 at 12:27






  • 2





    @FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

    – Unionhawk
    Sep 28 '18 at 22:16






  • 1





    The closer match here would be gaming.stackexchange.com/questions/286927/…

    – Unionhawk
    Sep 28 '18 at 22:17






  • 2





    @Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

    – Pharap
    Oct 26 '18 at 22:12

















0















So I'm trying to make a command that tests for a named item in a players inventory, and executes if they have that item. I know that you can test for an item type, but how do I make it test for a name too? Please bear in mind: I am trying to figure this out for Minecraft 1.13, not any previous versions.



*Edit: I have already tried this command with no success:



execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick""]] run say hi



Edit 2: So after some testing I think it has to do with the attribute modifiers or text color I'm using with the name. Any ideas?










share|improve this question
























  • Please search before asking or at least look at the question list on the right. The first question there already answers this.

    – Fabian Röling
    Sep 23 '18 at 10:22






  • 2





    @FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

    – Unionhawk
    Sep 28 '18 at 12:27






  • 2





    @FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

    – Unionhawk
    Sep 28 '18 at 22:16






  • 1





    The closer match here would be gaming.stackexchange.com/questions/286927/…

    – Unionhawk
    Sep 28 '18 at 22:17






  • 2





    @Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

    – Pharap
    Oct 26 '18 at 22:12













0












0








0








So I'm trying to make a command that tests for a named item in a players inventory, and executes if they have that item. I know that you can test for an item type, but how do I make it test for a name too? Please bear in mind: I am trying to figure this out for Minecraft 1.13, not any previous versions.



*Edit: I have already tried this command with no success:



execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick""]] run say hi



Edit 2: So after some testing I think it has to do with the attribute modifiers or text color I'm using with the name. Any ideas?










share|improve this question
















So I'm trying to make a command that tests for a named item in a players inventory, and executes if they have that item. I know that you can test for an item type, but how do I make it test for a name too? Please bear in mind: I am trying to figure this out for Minecraft 1.13, not any previous versions.



*Edit: I have already tried this command with no success:



execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick""]] run say hi



Edit 2: So after some testing I think it has to do with the attribute modifiers or text color I'm using with the name. Any ideas?







minecraft-commands






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 25 '18 at 1:50







Warloch 11

















asked Sep 23 '18 at 5:07









Warloch 11Warloch 11

511 silver badge5 bronze badges




511 silver badge5 bronze badges












  • Please search before asking or at least look at the question list on the right. The first question there already answers this.

    – Fabian Röling
    Sep 23 '18 at 10:22






  • 2





    @FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

    – Unionhawk
    Sep 28 '18 at 12:27






  • 2





    @FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

    – Unionhawk
    Sep 28 '18 at 22:16






  • 1





    The closer match here would be gaming.stackexchange.com/questions/286927/…

    – Unionhawk
    Sep 28 '18 at 22:17






  • 2





    @Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

    – Pharap
    Oct 26 '18 at 22:12

















  • Please search before asking or at least look at the question list on the right. The first question there already answers this.

    – Fabian Röling
    Sep 23 '18 at 10:22






  • 2





    @FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

    – Unionhawk
    Sep 28 '18 at 12:27






  • 2





    @FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

    – Unionhawk
    Sep 28 '18 at 22:16






  • 1





    The closer match here would be gaming.stackexchange.com/questions/286927/…

    – Unionhawk
    Sep 28 '18 at 22:17






  • 2





    @Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

    – Pharap
    Oct 26 '18 at 22:12
















Please search before asking or at least look at the question list on the right. The first question there already answers this.

– Fabian Röling
Sep 23 '18 at 10:22





Please search before asking or at least look at the question list on the right. The first question there already answers this.

– Fabian Röling
Sep 23 '18 at 10:22




2




2





@FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

– Unionhawk
Sep 28 '18 at 12:27





@FabianRöling That seems like a material difference to me considering the accepted answer there will straight up not work here.

– Unionhawk
Sep 28 '18 at 12:27




2




2





@FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

– Unionhawk
Sep 28 '18 at 22:16





@FabianRöling SelectedItem is still not Inventory. "Held item" is a different issue. We may have a duplicate, but "how do I test for an item in a player's hand" is not it. As such I am voting to reopen.

– Unionhawk
Sep 28 '18 at 22:16




1




1





The closer match here would be gaming.stackexchange.com/questions/286927/…

– Unionhawk
Sep 28 '18 at 22:17





The closer match here would be gaming.stackexchange.com/questions/286927/…

– Unionhawk
Sep 28 '18 at 22:17




2




2





@Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

– Pharap
Oct 26 '18 at 22:12





@Unionhawk As of Minecraft 1.13 the top answer for that question is incorrect because testfor has been removed and scoreboard players tag has been changed to tag, therefore it is not a duplicate because Warloch is specifically asking about Minecraft 1.13.

– Pharap
Oct 26 '18 at 22:12










2 Answers
2






active

oldest

votes


















4














So, after a few hours of debugging and fruitless research, I realized that:
a: My conjecture in Edit 2 about text format was correct,
and
b: it can be solved by including the other text json like so (Please pardon any errors in my json format):



execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick","color":"dark_red","bold":"true","italic":"true""]] run say hi


Hopefully this helped anyone out there experiencing a similar issue.






share|improve this answer






























    0














    execute as @a if entity @s[nbt=Inventory:[id:"minecraft:emerald",Count:3b]]



    Just Change "Emerald" To Whatever Item You Want, An you can Change "3" To The Amount Of Items you're looking for. That Should Work For Minecraft 1.13+ I'm Currently On Minecraft 1.14.3 Java Edition.






    share|improve this answer








    New contributor



    Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      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%2f338901%2fhow-do-i-test-for-a-named-item-in-a-players-inventory-minecraft-1-13%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









      4














      So, after a few hours of debugging and fruitless research, I realized that:
      a: My conjecture in Edit 2 about text format was correct,
      and
      b: it can be solved by including the other text json like so (Please pardon any errors in my json format):



      execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick","color":"dark_red","bold":"true","italic":"true""]] run say hi


      Hopefully this helped anyone out there experiencing a similar issue.






      share|improve this answer



























        4














        So, after a few hours of debugging and fruitless research, I realized that:
        a: My conjecture in Edit 2 about text format was correct,
        and
        b: it can be solved by including the other text json like so (Please pardon any errors in my json format):



        execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick","color":"dark_red","bold":"true","italic":"true""]] run say hi


        Hopefully this helped anyone out there experiencing a similar issue.






        share|improve this answer

























          4












          4








          4







          So, after a few hours of debugging and fruitless research, I realized that:
          a: My conjecture in Edit 2 about text format was correct,
          and
          b: it can be solved by including the other text json like so (Please pardon any errors in my json format):



          execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick","color":"dark_red","bold":"true","italic":"true""]] run say hi


          Hopefully this helped anyone out there experiencing a similar issue.






          share|improve this answer













          So, after a few hours of debugging and fruitless research, I realized that:
          a: My conjecture in Edit 2 about text format was correct,
          and
          b: it can be solved by including the other text json like so (Please pardon any errors in my json format):



          execute at @a[nbt=Inventory:[id:"minecraft:blaze_rod",Count:1b,tag:display:Name:""text":"Doomstick","color":"dark_red","bold":"true","italic":"true""]] run say hi


          Hopefully this helped anyone out there experiencing a similar issue.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 25 '18 at 3:37









          Warloch 11Warloch 11

          511 silver badge5 bronze badges




          511 silver badge5 bronze badges























              0














              execute as @a if entity @s[nbt=Inventory:[id:"minecraft:emerald",Count:3b]]



              Just Change "Emerald" To Whatever Item You Want, An you can Change "3" To The Amount Of Items you're looking for. That Should Work For Minecraft 1.13+ I'm Currently On Minecraft 1.14.3 Java Edition.






              share|improve this answer








              New contributor



              Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0














                execute as @a if entity @s[nbt=Inventory:[id:"minecraft:emerald",Count:3b]]



                Just Change "Emerald" To Whatever Item You Want, An you can Change "3" To The Amount Of Items you're looking for. That Should Work For Minecraft 1.13+ I'm Currently On Minecraft 1.14.3 Java Edition.






                share|improve this answer








                New contributor



                Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





















                  0












                  0








                  0







                  execute as @a if entity @s[nbt=Inventory:[id:"minecraft:emerald",Count:3b]]



                  Just Change "Emerald" To Whatever Item You Want, An you can Change "3" To The Amount Of Items you're looking for. That Should Work For Minecraft 1.13+ I'm Currently On Minecraft 1.14.3 Java Edition.






                  share|improve this answer








                  New contributor



                  Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  execute as @a if entity @s[nbt=Inventory:[id:"minecraft:emerald",Count:3b]]



                  Just Change "Emerald" To Whatever Item You Want, An you can Change "3" To The Amount Of Items you're looking for. That Should Work For Minecraft 1.13+ I'm Currently On Minecraft 1.14.3 Java Edition.







                  share|improve this answer








                  New contributor



                  Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share|improve this answer



                  share|improve this answer






                  New contributor



                  Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  answered 19 mins ago









                  AzvicAzvic

                  1




                  1




                  New contributor



                  Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




                  New contributor




                  Azvic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





























                      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%2f338901%2fhow-do-i-test-for-a-named-item-in-a-players-inventory-minecraft-1-13%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. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу