How to replace an item the player has in their inventory in 1.13? The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraIs it possible to mark or modify a player with a specific item in their inventoryCustom item in inventory / custom tellrawHow to replace a SPECIFIC item in a players hotbar with another specific itemHow to change scoreboard score if player does not have item in his inventory?Finding a player with a certain item and giving them another itemReplace normal block with same block that has a special propertyMinecraft– How to detect for player with custom headHow do I test for a named item in a players inventory? (Minecraft 1.13)How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?How to run a command (using /execute) based on a player having 7 or more xp points in Minecraft?
Single author papers against my advisor's will?
How did the crowd guess the pentatonic scale in Bobby McFerrin's presentation?
Define a list range inside a list
How to determine omitted units in a publication
How to make Illustrator type tool selection automatically adapt with text length
Why doesn't a hydraulic lever violate conservation of energy?
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Circular reasoning in L'Hopital's rule
Didn't get enough time to take a Coding Test - what to do now?
Is every episode of "Where are my Pants?" identical?
Why did Peik Lin say, "I'm not an animal"?
Do warforged have souls?
How to handle characters who are more educated than the author?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Is 'stolen' appropriate word?
Do I have Disadvantage attacking with an off-hand weapon?
60's-70's movie: home appliances revolting against the owners
Can a flute soloist sit?
What is the padding with red substance inside of steak packaging?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Was credit for the black hole image misappropriated?
Working through the single responsibility principle (SRP) in Python when calls are expensive
Store Dynamic-accessible hidden metadata in a cell
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
How to replace an item the player has in their inventory in 1.13?
The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraIs it possible to mark or modify a player with a specific item in their inventoryCustom item in inventory / custom tellrawHow to replace a SPECIFIC item in a players hotbar with another specific itemHow to change scoreboard score if player does not have item in his inventory?Finding a player with a certain item and giving them another itemReplace normal block with same block that has a special propertyMinecraft– How to detect for player with custom headHow do I test for a named item in a players inventory? (Minecraft 1.13)How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?How to run a command (using /execute) based on a player having 7 or more xp points in Minecraft?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm not very familiar with the new Minecraft 1.13 commands so I'm not exactly sure of how I would go about doing this. I would like to replace the item "Water Bottle" with a different item whenever a player has either filled a water bottle up or found one in the world. For example, the player walks up to a body of water with an empty glass bottle, they fill it up and immediately the water bottle is replaced with a fire resistance potion (just as an idea of what I'm trying to do).
I had tried to use a repeat command block that clears the player's inventory of any water bottle that is in their inventory using the /clear command, and then if that is successful (I check with a comparator) I simply give the player my desired item using the /give command. However, the problem I'm having with this is that it seems to be very inconsistent. For example, if I was to click multiple times on a source of water relatively fast then the majority of them are not turned into my item and the player is left over with different Water Bottles.
minecraft minecraft-commands
New contributor
add a comment |
I'm not very familiar with the new Minecraft 1.13 commands so I'm not exactly sure of how I would go about doing this. I would like to replace the item "Water Bottle" with a different item whenever a player has either filled a water bottle up or found one in the world. For example, the player walks up to a body of water with an empty glass bottle, they fill it up and immediately the water bottle is replaced with a fire resistance potion (just as an idea of what I'm trying to do).
I had tried to use a repeat command block that clears the player's inventory of any water bottle that is in their inventory using the /clear command, and then if that is successful (I check with a comparator) I simply give the player my desired item using the /give command. However, the problem I'm having with this is that it seems to be very inconsistent. For example, if I was to click multiple times on a source of water relatively fast then the majority of them are not turned into my item and the player is left over with different Water Bottles.
minecraft minecraft-commands
New contributor
add a comment |
I'm not very familiar with the new Minecraft 1.13 commands so I'm not exactly sure of how I would go about doing this. I would like to replace the item "Water Bottle" with a different item whenever a player has either filled a water bottle up or found one in the world. For example, the player walks up to a body of water with an empty glass bottle, they fill it up and immediately the water bottle is replaced with a fire resistance potion (just as an idea of what I'm trying to do).
I had tried to use a repeat command block that clears the player's inventory of any water bottle that is in their inventory using the /clear command, and then if that is successful (I check with a comparator) I simply give the player my desired item using the /give command. However, the problem I'm having with this is that it seems to be very inconsistent. For example, if I was to click multiple times on a source of water relatively fast then the majority of them are not turned into my item and the player is left over with different Water Bottles.
minecraft minecraft-commands
New contributor
I'm not very familiar with the new Minecraft 1.13 commands so I'm not exactly sure of how I would go about doing this. I would like to replace the item "Water Bottle" with a different item whenever a player has either filled a water bottle up or found one in the world. For example, the player walks up to a body of water with an empty glass bottle, they fill it up and immediately the water bottle is replaced with a fire resistance potion (just as an idea of what I'm trying to do).
I had tried to use a repeat command block that clears the player's inventory of any water bottle that is in their inventory using the /clear command, and then if that is successful (I check with a comparator) I simply give the player my desired item using the /give command. However, the problem I'm having with this is that it seems to be very inconsistent. For example, if I was to click multiple times on a source of water relatively fast then the majority of them are not turned into my item and the player is left over with different Water Bottles.
minecraft minecraft-commands
minecraft minecraft-commands
New contributor
New contributor
New contributor
asked 10 mins ago
HydraHydra
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
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
);
);
Hydra is a new contributor. Be nice, and check out our Code of Conduct.
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%2f348952%2fhow-to-replace-an-item-the-player-has-in-their-inventory-in-1-13%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Hydra is a new contributor. Be nice, and check out our Code of Conduct.
Hydra is a new contributor. Be nice, and check out our Code of Conduct.
Hydra is a new contributor. Be nice, and check out our Code of Conduct.
Hydra 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.
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%2f348952%2fhow-to-replace-an-item-the-player-has-in-their-inventory-in-1-13%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