(Java Minecraft 1.14) How to give effects in a function rewarded by an advancement?How can you summon/create player shot arrows using commands?multiple /tellraw reactions from same commandMinecraft - How to select flying arrows by NBT data given to them in item formWhy am I getting an 'unexpected token' error with this Minecraft /give command?How to remove infinite potion effects?How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?Need to make target selector only select one entity(Java Minecraft 1.13) Can I remove the shadow on an item's name?(Java Minecraft 1.14) How to /give a written book?(Java Minecraft 1.14.3) How to detect a player holding right click?
Went to a big 4 but got fired for underperformance in a year recently - Now every one thinks I'm pro - How to balance expectations?
How is Sword Coast North governed?
Can it be useful for a player block with a hanging piece in a back rank mate situation?
Declaring a visitor to the UK as my "girlfriend" - effect on getting a Visitor visa?
A small reformulation of the Cosmological Argument
Find the missing country
Can I say "Gesundheit" if someone is coughing?
Do the rules for the "Buying a Magic Item" downtime activity allow a character an opportunity to purchase the item later?
What is time? Does it flow linearly? If so, how are we sure?
Why have both: BJT and FET transistors on IC output?
When did J.K. Rowling decide to make Ron and Hermione a couple?
Does the use of a new concept require a prior definition?
Why do player start with fighting for the corners in go?
Can't understand an ACT practice problem: Triangle appears to be isosceles, why isn't the answer 7.3~ here?
speaker impedence
Transistor design with beta variation
Protect a 6 inch air hose from physical damage
How did Biff return to 2015 from 1955 without a lightning strike?
Any information about the photo with Army Uniforms
A conjectural trigonometric identity
What's the term for a group of people who enjoy literary works?
Where do I keep track of sorcery points on a character sheet?
Is the un-detonated globe of Otiluke's Freezing Sphere magical?
Is the EU really banning "toxic propellants" in 2020? How is that going to work?
(Java Minecraft 1.14) How to give effects in a function rewarded by an advancement?
How can you summon/create player shot arrows using commands?multiple /tellraw reactions from same commandMinecraft - How to select flying arrows by NBT data given to them in item formWhy am I getting an 'unexpected token' error with this Minecraft /give command?How to remove infinite potion effects?How do you spawn an entity that can be linked to the player that spawned it in Minecraft 1.13?Need to make target selector only select one entity(Java Minecraft 1.13) Can I remove the shadow on an item's name?(Java Minecraft 1.14) How to /give a written book?(Java Minecraft 1.14.3) How to detect a player holding right click?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a function triggered by an advancement that is supposed to give the player nausea and strength. It looks like this:
tellraw @s ["text":"[","color":"dark_aqua","selector":"@s","color":"dark_aqua","text":"] ","color":"dark_aqua","text":"I feel ill...","color":"aqua"]
effect give @s minecraft:nausea 30 3 true
effect give @s minecraft:strength 30 1 true
advancement revoke @s only dark_magic:hidden/drink_blood
This is triggered by the player drinking a retextured milk bucket (a blood-filled bucket), which works fine. The advancement which triggers the function is very simple and looks like this:
"criteria":
"drink_blood":
"trigger": "minecraft:consume_item",
"conditions":
"item":
"item": "minecraft:milk_bucket",
"nbt": "BloodBucket:1b,CustomModelData:1"
,
"rewards":
"function": "dark_magic:progression/story_dialogue/i_feel_ill"
When I drink a milk bucket with the custom NBT tag BloodBucket:1b
, it works: the /tellraw
triggers, and the advancement is revoked, reseting everything so I can drink it again and it will still work. However, the /effect
commands don't work. I can run the function manually from the chat, as in /function dark_magic:progression/story_dialogue/i_feel_ill
, and the effects work fine, but when run by the advancement, they don't work at all.
Does anyone know why this is? Moreover, does anyone know how to get around this? I know I could tag the player as drank_blood
or something and /schedule
a function for 1 tick later which executes the effects as all players tagged with drank_blood
and removes the tag, but that seems unnecessarily complicated for something as simple as giving an effect.
Am I doing something wrong with a selector or missing something simple, or is this just not possible and I'll need to do the /schedule
method?
minecraft minecraft-commands minecraft-datapack
add a comment |
I have a function triggered by an advancement that is supposed to give the player nausea and strength. It looks like this:
tellraw @s ["text":"[","color":"dark_aqua","selector":"@s","color":"dark_aqua","text":"] ","color":"dark_aqua","text":"I feel ill...","color":"aqua"]
effect give @s minecraft:nausea 30 3 true
effect give @s minecraft:strength 30 1 true
advancement revoke @s only dark_magic:hidden/drink_blood
This is triggered by the player drinking a retextured milk bucket (a blood-filled bucket), which works fine. The advancement which triggers the function is very simple and looks like this:
"criteria":
"drink_blood":
"trigger": "minecraft:consume_item",
"conditions":
"item":
"item": "minecraft:milk_bucket",
"nbt": "BloodBucket:1b,CustomModelData:1"
,
"rewards":
"function": "dark_magic:progression/story_dialogue/i_feel_ill"
When I drink a milk bucket with the custom NBT tag BloodBucket:1b
, it works: the /tellraw
triggers, and the advancement is revoked, reseting everything so I can drink it again and it will still work. However, the /effect
commands don't work. I can run the function manually from the chat, as in /function dark_magic:progression/story_dialogue/i_feel_ill
, and the effects work fine, but when run by the advancement, they don't work at all.
Does anyone know why this is? Moreover, does anyone know how to get around this? I know I could tag the player as drank_blood
or something and /schedule
a function for 1 tick later which executes the effects as all players tagged with drank_blood
and removes the tag, but that seems unnecessarily complicated for something as simple as giving an effect.
Am I doing something wrong with a selector or missing something simple, or is this just not possible and I'll need to do the /schedule
method?
minecraft minecraft-commands minecraft-datapack
add a comment |
I have a function triggered by an advancement that is supposed to give the player nausea and strength. It looks like this:
tellraw @s ["text":"[","color":"dark_aqua","selector":"@s","color":"dark_aqua","text":"] ","color":"dark_aqua","text":"I feel ill...","color":"aqua"]
effect give @s minecraft:nausea 30 3 true
effect give @s minecraft:strength 30 1 true
advancement revoke @s only dark_magic:hidden/drink_blood
This is triggered by the player drinking a retextured milk bucket (a blood-filled bucket), which works fine. The advancement which triggers the function is very simple and looks like this:
"criteria":
"drink_blood":
"trigger": "minecraft:consume_item",
"conditions":
"item":
"item": "minecraft:milk_bucket",
"nbt": "BloodBucket:1b,CustomModelData:1"
,
"rewards":
"function": "dark_magic:progression/story_dialogue/i_feel_ill"
When I drink a milk bucket with the custom NBT tag BloodBucket:1b
, it works: the /tellraw
triggers, and the advancement is revoked, reseting everything so I can drink it again and it will still work. However, the /effect
commands don't work. I can run the function manually from the chat, as in /function dark_magic:progression/story_dialogue/i_feel_ill
, and the effects work fine, but when run by the advancement, they don't work at all.
Does anyone know why this is? Moreover, does anyone know how to get around this? I know I could tag the player as drank_blood
or something and /schedule
a function for 1 tick later which executes the effects as all players tagged with drank_blood
and removes the tag, but that seems unnecessarily complicated for something as simple as giving an effect.
Am I doing something wrong with a selector or missing something simple, or is this just not possible and I'll need to do the /schedule
method?
minecraft minecraft-commands minecraft-datapack
I have a function triggered by an advancement that is supposed to give the player nausea and strength. It looks like this:
tellraw @s ["text":"[","color":"dark_aqua","selector":"@s","color":"dark_aqua","text":"] ","color":"dark_aqua","text":"I feel ill...","color":"aqua"]
effect give @s minecraft:nausea 30 3 true
effect give @s minecraft:strength 30 1 true
advancement revoke @s only dark_magic:hidden/drink_blood
This is triggered by the player drinking a retextured milk bucket (a blood-filled bucket), which works fine. The advancement which triggers the function is very simple and looks like this:
"criteria":
"drink_blood":
"trigger": "minecraft:consume_item",
"conditions":
"item":
"item": "minecraft:milk_bucket",
"nbt": "BloodBucket:1b,CustomModelData:1"
,
"rewards":
"function": "dark_magic:progression/story_dialogue/i_feel_ill"
When I drink a milk bucket with the custom NBT tag BloodBucket:1b
, it works: the /tellraw
triggers, and the advancement is revoked, reseting everything so I can drink it again and it will still work. However, the /effect
commands don't work. I can run the function manually from the chat, as in /function dark_magic:progression/story_dialogue/i_feel_ill
, and the effects work fine, but when run by the advancement, they don't work at all.
Does anyone know why this is? Moreover, does anyone know how to get around this? I know I could tag the player as drank_blood
or something and /schedule
a function for 1 tick later which executes the effects as all players tagged with drank_blood
and removes the tag, but that seems unnecessarily complicated for something as simple as giving an effect.
Am I doing something wrong with a selector or missing something simple, or is this just not possible and I'll need to do the /schedule
method?
minecraft minecraft-commands minecraft-datapack
minecraft minecraft-commands minecraft-datapack
asked 47 mins ago


Nik3141Nik3141
1,6824 silver badges27 bronze badges
1,6824 silver badges27 bronze badges
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
);
);
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%2f355619%2fjava-minecraft-1-14-how-to-give-effects-in-a-function-rewarded-by-an-advanceme%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
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%2f355619%2fjava-minecraft-1-14-how-to-give-effects-in-a-function-rewarded-by-an-advanceme%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