Deny items to be removed from inventory slots. Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Determine Minecraft item type from entity or inventory?How can I filter items with a certain enchantement?Place items in specific slots?How to /clear armor in inventoryMinecraft - Decrease Stack Size in ChestBats don't drop items they are holding in MinecraftHow do you prevent a player from throwing out an item?Remove items from chestProblems With /replaceitem CommandDistance command and tag command not working

How does the math work when buying airline miles?

How come Sam didn't become Lord of Horn Hill?

Dating a Former Employee

SF book about people trapped in a series of worlds they imagine

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

How can I reduce the gap between left and right of cdot with a macro?

Performance gap between vector<bool> and array

Why wasn't DOSKEY integrated with COMMAND.COM?

Why do we need to use the builder design pattern when we can do the same thing with setters?

Chebyshev inequality in terms of RMS

What is the font for "b" letter?

What initially awakened the Balrog?

How fail-safe is nr as stop bytes?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

AppleTVs create a chatty alternate WiFi network

The code below, is it ill-formed NDR or is it well formed?

ArcGIS Pro Python arcpy.CreatePersonalGDB_management

Combinatorics problem on counting.

Localisation of Category

Is there a kind of relay only consumes power when switching?

NumericArray versus PackedArray in MMA12

Hangman Game with C++

Should I follow up with an employee I believe overracted to a mistake I made?

Multiple OR (||) Conditions in If Statement



Deny items to be removed from inventory slots.



Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Determine Minecraft item type from entity or inventory?How can I filter items with a certain enchantement?Place items in specific slots?How to /clear armor in inventoryMinecraft - Decrease Stack Size in ChestBats don't drop items they are holding in MinecraftHow do you prevent a player from throwing out an item?Remove items from chestProblems With /replaceitem CommandDistance command and tag command not working



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








3















Is there a way to disallow players to remove a certain item from a certain inventory slot. What I have tried is to add a curse of binding to the item as following:



/replaceitem entity @p slot.hotbar.8 wool 1 0 ench:[id:10,lvl:1]


But as you may know, this only works for armor slots, not other inventory slots.










share|improve this question














bumped to the homepage by Community 20 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Can't you just spam that replaceitem command on a repeating command block?

    – pppery
    Apr 15 '17 at 13:11











  • @ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

    – Jacques Marais
    Apr 15 '17 at 17:15


















3















Is there a way to disallow players to remove a certain item from a certain inventory slot. What I have tried is to add a curse of binding to the item as following:



/replaceitem entity @p slot.hotbar.8 wool 1 0 ench:[id:10,lvl:1]


But as you may know, this only works for armor slots, not other inventory slots.










share|improve this question














bumped to the homepage by Community 20 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Can't you just spam that replaceitem command on a repeating command block?

    – pppery
    Apr 15 '17 at 13:11











  • @ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

    – Jacques Marais
    Apr 15 '17 at 17:15














3












3








3








Is there a way to disallow players to remove a certain item from a certain inventory slot. What I have tried is to add a curse of binding to the item as following:



/replaceitem entity @p slot.hotbar.8 wool 1 0 ench:[id:10,lvl:1]


But as you may know, this only works for armor slots, not other inventory slots.










share|improve this question














Is there a way to disallow players to remove a certain item from a certain inventory slot. What I have tried is to add a curse of binding to the item as following:



/replaceitem entity @p slot.hotbar.8 wool 1 0 ench:[id:10,lvl:1]


But as you may know, this only works for armor slots, not other inventory slots.







minecraft minecraft-commands






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 11 '17 at 20:20









Jacques MaraisJacques Marais

1,491524




1,491524





bumped to the homepage by Community 20 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 20 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Can't you just spam that replaceitem command on a repeating command block?

    – pppery
    Apr 15 '17 at 13:11











  • @ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

    – Jacques Marais
    Apr 15 '17 at 17:15


















  • Can't you just spam that replaceitem command on a repeating command block?

    – pppery
    Apr 15 '17 at 13:11











  • @ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

    – Jacques Marais
    Apr 15 '17 at 17:15

















Can't you just spam that replaceitem command on a repeating command block?

– pppery
Apr 15 '17 at 13:11





Can't you just spam that replaceitem command on a repeating command block?

– pppery
Apr 15 '17 at 13:11













@ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

– Jacques Marais
Apr 15 '17 at 17:15






@ppperry Then a player can remove it and use it for other purposes. Thank you for the suggestion though.

– Jacques Marais
Apr 15 '17 at 17:15











1 Answer
1






active

oldest

votes


















1














Killing items on the ground



setup a scoreboard :



/scoreboard objective add Item dummy Item


Inside repeating active commandblocks (one that executes a command every thick) use these 3 commands:



/replaceitem entity @p slot.hotbar.8 wool 1 0 

/scoreboard players set @e[type=Item] Item 1 Item:id:wool,Count:1,Damage:8

/kill @e[type=Item,score_Item_min=1]


The first command adds the item to a specific spot on the hotbar just like you're command but without the curse.



The second assigns any wool blocks with damage value 8 to the scoreboard and the third command kills all items assigned to the scoreboard.



deleting items from unwanted inventory slots



If you want to delete the item from another slot in the hotbar use this inside first command inside a active repeating commandblock.



/testfor @a Inventory:[Slot:0b,id:"minecraft:wool",Damage:8]


then add a comparator to that commandblock running into a normal command block executing:



/replaceitem entity @p slot.hotbar.1 air 


This you will have to setup for each slot in the inventory. Note that the slot number in the testfor is 1 less than the slot in the replaceitem (and note the b after it)






share|improve this answer























    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%2f306604%2fdeny-items-to-be-removed-from-inventory-slots%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














    Killing items on the ground



    setup a scoreboard :



    /scoreboard objective add Item dummy Item


    Inside repeating active commandblocks (one that executes a command every thick) use these 3 commands:



    /replaceitem entity @p slot.hotbar.8 wool 1 0 

    /scoreboard players set @e[type=Item] Item 1 Item:id:wool,Count:1,Damage:8

    /kill @e[type=Item,score_Item_min=1]


    The first command adds the item to a specific spot on the hotbar just like you're command but without the curse.



    The second assigns any wool blocks with damage value 8 to the scoreboard and the third command kills all items assigned to the scoreboard.



    deleting items from unwanted inventory slots



    If you want to delete the item from another slot in the hotbar use this inside first command inside a active repeating commandblock.



    /testfor @a Inventory:[Slot:0b,id:"minecraft:wool",Damage:8]


    then add a comparator to that commandblock running into a normal command block executing:



    /replaceitem entity @p slot.hotbar.1 air 


    This you will have to setup for each slot in the inventory. Note that the slot number in the testfor is 1 less than the slot in the replaceitem (and note the b after it)






    share|improve this answer



























      1














      Killing items on the ground



      setup a scoreboard :



      /scoreboard objective add Item dummy Item


      Inside repeating active commandblocks (one that executes a command every thick) use these 3 commands:



      /replaceitem entity @p slot.hotbar.8 wool 1 0 

      /scoreboard players set @e[type=Item] Item 1 Item:id:wool,Count:1,Damage:8

      /kill @e[type=Item,score_Item_min=1]


      The first command adds the item to a specific spot on the hotbar just like you're command but without the curse.



      The second assigns any wool blocks with damage value 8 to the scoreboard and the third command kills all items assigned to the scoreboard.



      deleting items from unwanted inventory slots



      If you want to delete the item from another slot in the hotbar use this inside first command inside a active repeating commandblock.



      /testfor @a Inventory:[Slot:0b,id:"minecraft:wool",Damage:8]


      then add a comparator to that commandblock running into a normal command block executing:



      /replaceitem entity @p slot.hotbar.1 air 


      This you will have to setup for each slot in the inventory. Note that the slot number in the testfor is 1 less than the slot in the replaceitem (and note the b after it)






      share|improve this answer

























        1












        1








        1







        Killing items on the ground



        setup a scoreboard :



        /scoreboard objective add Item dummy Item


        Inside repeating active commandblocks (one that executes a command every thick) use these 3 commands:



        /replaceitem entity @p slot.hotbar.8 wool 1 0 

        /scoreboard players set @e[type=Item] Item 1 Item:id:wool,Count:1,Damage:8

        /kill @e[type=Item,score_Item_min=1]


        The first command adds the item to a specific spot on the hotbar just like you're command but without the curse.



        The second assigns any wool blocks with damage value 8 to the scoreboard and the third command kills all items assigned to the scoreboard.



        deleting items from unwanted inventory slots



        If you want to delete the item from another slot in the hotbar use this inside first command inside a active repeating commandblock.



        /testfor @a Inventory:[Slot:0b,id:"minecraft:wool",Damage:8]


        then add a comparator to that commandblock running into a normal command block executing:



        /replaceitem entity @p slot.hotbar.1 air 


        This you will have to setup for each slot in the inventory. Note that the slot number in the testfor is 1 less than the slot in the replaceitem (and note the b after it)






        share|improve this answer













        Killing items on the ground



        setup a scoreboard :



        /scoreboard objective add Item dummy Item


        Inside repeating active commandblocks (one that executes a command every thick) use these 3 commands:



        /replaceitem entity @p slot.hotbar.8 wool 1 0 

        /scoreboard players set @e[type=Item] Item 1 Item:id:wool,Count:1,Damage:8

        /kill @e[type=Item,score_Item_min=1]


        The first command adds the item to a specific spot on the hotbar just like you're command but without the curse.



        The second assigns any wool blocks with damage value 8 to the scoreboard and the third command kills all items assigned to the scoreboard.



        deleting items from unwanted inventory slots



        If you want to delete the item from another slot in the hotbar use this inside first command inside a active repeating commandblock.



        /testfor @a Inventory:[Slot:0b,id:"minecraft:wool",Damage:8]


        then add a comparator to that commandblock running into a normal command block executing:



        /replaceitem entity @p slot.hotbar.1 air 


        This you will have to setup for each slot in the inventory. Note that the slot number in the testfor is 1 less than the slot in the replaceitem (and note the b after it)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 17 '17 at 8:03









        BRHSMBRHSM

        1,0421335




        1,0421335



























            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%2f306604%2fdeny-items-to-be-removed-from-inventory-slots%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

            Isurus Índice Especies | Notas | Véxase tamén | Menú de navegación"A compendium of fossil marine animal genera (Chondrichthyes entry)"o orixinal"A review of the Tertiary fossil Cetacea (Mammalia) localities in wales port taf Museum Victoria"o orixinalThe Vertebrate Fauna of the Selma Formation of Alabama. Part VII. Part VIII. The Mosasaurs The Fishes50419737IDsh85068767Isurus2548834613242066569678159923NHMSYS00210535017845105743

            What does “fit” mean in this sentence? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How does 'jealousy' mean 'suspicion'?What does “not so say” mean?Does “somebody of my caliber” mean the speaker themselves?“accounting for high fasting blood glucose”- help about the meaningWhat does “cloaked by NDA” mean in this context?What does it mean by 'community ownership' in this context?What does “human corroborators” mean in this context?What does “everything but a fire” mean in this context?What does “run” mean here?What does “rabbited” mean/imply in this sentence?

            What is the difference between Castle Defense and Tower Defense? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)What is the 17th achievement in Bloons TD4 for iPhone?Anyone has table of piercing and damage for each tower in bloon tower defense?Which tower consumptions benefit a Temple of the Monkey God, and how, exactly?What's the difference between “first”, “last”, “close”, and “strong”?How do you upgrade towers in Bloons Tower Defense?What does the Submarine do in BTD5?Bloons Tower Defense 5 Upgrade PathsDo the Double Shot and Bloonjtsu upgrades pierce more bloons?What is the Water's Edge terrain needed to build the Pirate School Special Building?What determines the difficulty for capturing a tile?