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;
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
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.
add a comment |
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
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
add a comment |
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
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
minecraft minecraft-commands
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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)
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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)
add a comment |
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)
add a comment |
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)
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)
answered May 17 '17 at 8:03
BRHSMBRHSM
1,0421335
1,0421335
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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