How do you test for a specific item in a player inventoryHow can I detect if a player has a specific item with a specific datavalue in their inventory?Is it possible to mark or modify a player with a specific item in their inventoryIs it possible to mark or modify a player with a specific item in their inventoryHow can I search for a specific item with attributes?Minecraft: Test for unique item in item frameRemove armor/any item with specific nameI want to make a system that tests for a specific player at specific coordinates with a specific item?How can I test for a player wearing specific armor?How do I test for a named item in a players inventory? (Minecraft 1.13)How to test for a dropped item in minecraft? 1.13.1

Why is there a large performance impact when looping over an array over 240 elements?

Why does Japan use the same type of AC power outlet as the US?

Did Pope Urban II issue the papal bull "terra nullius" in 1095?

Xdebug not working over Drush

Crippling fear of hellfire &, damnation, please help?

How was the murder committed?

Global BGP Routing only by only importing supernet prefixes

Can lodestones be used to magnetize crude iron weapons?

How to not forget things?

Boss wants me to ignore a software API license

Identifying My Main Water Shutoff Valve / Setup

Escape Velocity - Won't the orbital path just become larger with higher initial velocity?

Is it possible to arrive in the US without a C-1 visa for a transit flight

Are those flyers about apartment purchase a scam?

Word for an event that will likely never happen again

Why did IBM make the PC BIOS source code public?

What is the safest way to leave my MacBook on 24/7 with macOS Mojave?

Doesn't the speed of light limit imply the same electron can be annihilated twice?

Help, I cannot decide when to start the story

What is the farthest a camera can see?

Dogfights in outer space

Shifting tenses in the middle of narration

How should I write this passage to make it the most readable?

Regression terminology, predictor vs IV vs?



How do you test for a specific item in a player inventory


How can I detect if a player has a specific item with a specific datavalue in their inventory?Is it possible to mark or modify a player with a specific item in their inventoryIs it possible to mark or modify a player with a specific item in their inventoryHow can I search for a specific item with attributes?Minecraft: Test for unique item in item frameRemove armor/any item with specific nameI want to make a system that tests for a specific player at specific coordinates with a specific item?How can I test for a player wearing specific armor?How do I test for a named item in a players inventory? (Minecraft 1.13)How to test for a dropped item in minecraft? 1.13.1






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








-2















I’m trying to test for a certain item in a players inventory in 1.12.0 version and a can’t figure it out









share







New contributor



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





















  • Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

    – Fabian Röling
    20 mins ago











  • Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

    – pppery
    6 mins ago

















-2















I’m trying to test for a certain item in a players inventory in 1.12.0 version and a can’t figure it out









share







New contributor



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





















  • Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

    – Fabian Röling
    20 mins ago











  • Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

    – pppery
    6 mins ago













-2












-2








-2








I’m trying to test for a certain item in a players inventory in 1.12.0 version and a can’t figure it out









share







New contributor



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











I’m trying to test for a certain item in a players inventory in 1.12.0 version and a can’t figure it out







minecraft





share







New contributor



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









share







New contributor



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







share



share






New contributor



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








asked 31 mins ago









Bob startsBob starts

1




1




New contributor



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




New contributor




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

















  • Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

    – Fabian Röling
    20 mins ago











  • Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

    – pppery
    6 mins ago

















  • Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

    – Fabian Röling
    20 mins ago











  • Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

    – pppery
    6 mins ago
















Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

– Fabian Röling
20 mins ago





Possible duplicate of How can I detect if a player has a specific item with a specific datavalue in their inventory?

– Fabian Röling
20 mins ago













Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

– pppery
6 mins ago





Possible duplicate of Is it possible to mark or modify a player with a specific item in their inventory

– pppery
6 mins ago










1 Answer
1






active

oldest

votes


















-1














As MBraedley said here: How can I detect if a player has a specific item with a specific datavalue in their inventory?



The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



/tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



/tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.2



The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



/tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



/tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.





share



























    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
    );



    );






    Bob starts is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f356144%2fhow-do-you-test-for-a-specific-item-in-a-player-inventory%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    As MBraedley said here: How can I detect if a player has a specific item with a specific datavalue in their inventory?



    The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



    /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
    Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



    /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
    Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.2



    The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



    /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
    Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



    /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
    Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.





    share





























      -1














      As MBraedley said here: How can I detect if a player has a specific item with a specific datavalue in their inventory?



      The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



      /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
      Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



      /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
      Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.2



      The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



      /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
      Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



      /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
      Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.





      share



























        -1












        -1








        -1







        As MBraedley said here: How can I detect if a player has a specific item with a specific datavalue in their inventory?



        The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



        /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
        Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



        /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
        Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.2



        The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



        /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
        Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



        /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
        Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.





        share













        As MBraedley said here: How can I detect if a player has a specific item with a specific datavalue in their inventory?



        The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



        /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
        Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



        /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
        Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.2



        The simplest solution is to update to 1.13, which implemented "The Flattening". For every block that had multiple variations based on the data value, a new block has been introduced for each variation with its own block ID (name). This effects the coloured blocks in particular, but there's a number of other block types (wood blocks, for instance) that are also affected. Now all you have to do is:



        /tag @a[nbt=Inventory:[id:red_wool]] add CarryingRed
        Additionally, 1.13 introduced the idea of tags for groups of blocks or items (or functions) that are related. If you want to tag someone (in the sense of the former scoreboard tag functionality like above), all you have to do is select the wool tag in the selector:



        /tag @a[nbt=Inventory:[id:#wool]] add CarryingWool
        Note the #wool, which will match any item that is listed in the wool tag, which by default includes all colours of wool.






        share











        share


        share










        answered 8 mins ago









        The Cosmic TruthThe Cosmic Truth

        3109 bronze badges




        3109 bronze badges























            Bob starts is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            Bob starts is a new contributor. Be nice, and check out our Code of Conduct.












            Bob starts is a new contributor. Be nice, and check out our Code of Conduct.











            Bob starts is a new contributor. Be nice, and check out our Code of Conduct.














            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%2f356144%2fhow-do-you-test-for-a-specific-item-in-a-player-inventory%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

            Sahara Skak | Bilen | Luke uk diar | NawigatsjuunCommonskategorii: SaharaWikivoyage raisfeerer: Sahara26° N, 13° O

            The fall designs the understood secretary. Looking glass Science Shock Discovery Hot Everybody Loves Raymond Smile 곳 서비스 성실하다 Defas Kaloolon Definition: To combine or impregnate with sulphur or any of its compounds as to sulphurize caoutchouc in vulcanizing Flame colored Reason Useful Thin Help 갖다 유명하다 낙엽 장례식 Country Iron Definition: A fencer a gladiator one who exhibits his skill in the use of the sword Definition: The American black throated bunting Spiza Americana Nostalgic Needy Method to my madness 시키다 평가되다 전부 소설가 우아하다 Argument Tin Feeling Representative Gym Music Gaur Chicken 일쑤 코치 편 학생증 The harbor values the sugar. Vasagle Yammoe Enstatite Definition: Capable of being limited Road Neighborly Five Refer Built Kangaroo 비비다 Degree Release Bargain Horse 하루 형님 유교 석 동부 괴롭히다 경제력

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