Custom Advancements and Functions 1.13.2How do I prevent a second player from entering an area occupied by...
Word or phrase for showing great skill at something WITHOUT formal training in it
Why do no American passenger airlines still operate dedicated cargo flights?
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
Can a hotel cancel a confirmed reservation?
Can making a creature unable to attack after it has been assigned as an attacker remove it from combat?
Incorporating research and background: How much is too much?
Program that converts a number to a letter of the alphabet
How should I handle players who ignore the session zero agreement?
Early credit roll before the end of the film
How do you funnel food off a cutting board?
CREATE ASSEMBLY System.DirectoryServices.AccountManagement.dll without enabling TRUSTWORTHY
What is the purpose of easy combat scenarios that don't need resource expenditure?
Which one of these password policies is more secure?
How can animals be objects of ethics without being subjects as well?
what does しにみえてる mean?
Why exactly do action photographers need high fps burst cameras?
Avoiding morning and evening handshakes
What are "industrial chops"?
If I deleted a game I lost the disc for, can I reinstall it digitally?
How to prevent users from executing commands through browser URL
How to escape the null character in here-document?(bash and/or dash)
Dilemma of explaining to interviewer that he is the reason for declining second interview
Custom Advancements and Functions 1.13.2
How do I prevent a second player from entering an area occupied by another player?How can I filter items with a certain enchantement?Teleportation Coordinates QuestionUsing a command block to prevent a button from being placedExample Gamerule to run function when custom block placed without command blocks in 1.13My arrows aren't being executed at by a looping function/command blockPrevent functions from showing in autofill command windowNew commands not working?How to test for a dropped item in minecraft? 1.13.1How do I execute multiple function within another function?
I'm setting up a new server, and would like to have some custom Advancements.
I was thinking of using these as a way to start new players out with some basics...as they go through the spawn room, they would trigger Advancements that would run Functions to give them some items:
- wooden axe
- wooden pick
- wooden sword
- white bed
- some food
- leather armor...
Nothing ground shaking, but should allow for a slightly easier start.
I tried using the Advancements Generator here and using location ranges as the criteria, but they don't seem to be working.
Now I'm trying to use command blocks and pressure plates...but I can't get the correct commands to either grant the Advancement to the player stepping on the pressure plate...or the Function to gift the items to the player stepping on the pressure plate.
I've tried using the @p
selector but that isn't working... give @p item amount
Have also tried execute as @s run give @p...
but that isn't working either.
Do I have to somehow anchor the command to a location? I would have thought that the command block's location would be used by default...maybe it isn't though,
Thanks
Update:
If I run axe.mcfunction which has give @s wooden_axe 1
...it works from chat
However, some of the functions aren't being recognized, and that is obviously the issue...like
give @s leatherhelmet 1 28 {display:{color:1476153,Name:Newb},ench:[{id:0,lvl:1},{id:3,lvl:1},{id:4,lvl:1}]}
...even when run in chat returns an error of Error: Player not found
. It only works when I type in the actual username...no variables are working...@s, @p, @a won't work...
Update 2
After playing around some more...
/give @s leatherhelmet 1 28 {display: {Name: "Newb", color: 1476153}}
works with the playername...every time...still doesn't work with the variable.
Update 3
I now have the Advancements being granted correctly...and most of the functions to give items...the only one that isn't working is the one to give colored armor...
I got the command blocks to give the items by using execute as @p run function ...
and the functions use give @p item count
minecraft
|
show 4 more comments
I'm setting up a new server, and would like to have some custom Advancements.
I was thinking of using these as a way to start new players out with some basics...as they go through the spawn room, they would trigger Advancements that would run Functions to give them some items:
- wooden axe
- wooden pick
- wooden sword
- white bed
- some food
- leather armor...
Nothing ground shaking, but should allow for a slightly easier start.
I tried using the Advancements Generator here and using location ranges as the criteria, but they don't seem to be working.
Now I'm trying to use command blocks and pressure plates...but I can't get the correct commands to either grant the Advancement to the player stepping on the pressure plate...or the Function to gift the items to the player stepping on the pressure plate.
I've tried using the @p
selector but that isn't working... give @p item amount
Have also tried execute as @s run give @p...
but that isn't working either.
Do I have to somehow anchor the command to a location? I would have thought that the command block's location would be used by default...maybe it isn't though,
Thanks
Update:
If I run axe.mcfunction which has give @s wooden_axe 1
...it works from chat
However, some of the functions aren't being recognized, and that is obviously the issue...like
give @s leatherhelmet 1 28 {display:{color:1476153,Name:Newb},ench:[{id:0,lvl:1},{id:3,lvl:1},{id:4,lvl:1}]}
...even when run in chat returns an error of Error: Player not found
. It only works when I type in the actual username...no variables are working...@s, @p, @a won't work...
Update 2
After playing around some more...
/give @s leatherhelmet 1 28 {display: {Name: "Newb", color: 1476153}}
works with the playername...every time...still doesn't work with the variable.
Update 3
I now have the Advancements being granted correctly...and most of the functions to give items...the only one that isn't working is the one to give colored armor...
I got the command blocks to give the items by using execute as @p run function ...
and the functions use give @p item count
minecraft
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Some do...I will update.
– Rdster
Feb 12 at 11:49
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13
|
show 4 more comments
I'm setting up a new server, and would like to have some custom Advancements.
I was thinking of using these as a way to start new players out with some basics...as they go through the spawn room, they would trigger Advancements that would run Functions to give them some items:
- wooden axe
- wooden pick
- wooden sword
- white bed
- some food
- leather armor...
Nothing ground shaking, but should allow for a slightly easier start.
I tried using the Advancements Generator here and using location ranges as the criteria, but they don't seem to be working.
Now I'm trying to use command blocks and pressure plates...but I can't get the correct commands to either grant the Advancement to the player stepping on the pressure plate...or the Function to gift the items to the player stepping on the pressure plate.
I've tried using the @p
selector but that isn't working... give @p item amount
Have also tried execute as @s run give @p...
but that isn't working either.
Do I have to somehow anchor the command to a location? I would have thought that the command block's location would be used by default...maybe it isn't though,
Thanks
Update:
If I run axe.mcfunction which has give @s wooden_axe 1
...it works from chat
However, some of the functions aren't being recognized, and that is obviously the issue...like
give @s leatherhelmet 1 28 {display:{color:1476153,Name:Newb},ench:[{id:0,lvl:1},{id:3,lvl:1},{id:4,lvl:1}]}
...even when run in chat returns an error of Error: Player not found
. It only works when I type in the actual username...no variables are working...@s, @p, @a won't work...
Update 2
After playing around some more...
/give @s leatherhelmet 1 28 {display: {Name: "Newb", color: 1476153}}
works with the playername...every time...still doesn't work with the variable.
Update 3
I now have the Advancements being granted correctly...and most of the functions to give items...the only one that isn't working is the one to give colored armor...
I got the command blocks to give the items by using execute as @p run function ...
and the functions use give @p item count
minecraft
I'm setting up a new server, and would like to have some custom Advancements.
I was thinking of using these as a way to start new players out with some basics...as they go through the spawn room, they would trigger Advancements that would run Functions to give them some items:
- wooden axe
- wooden pick
- wooden sword
- white bed
- some food
- leather armor...
Nothing ground shaking, but should allow for a slightly easier start.
I tried using the Advancements Generator here and using location ranges as the criteria, but they don't seem to be working.
Now I'm trying to use command blocks and pressure plates...but I can't get the correct commands to either grant the Advancement to the player stepping on the pressure plate...or the Function to gift the items to the player stepping on the pressure plate.
I've tried using the @p
selector but that isn't working... give @p item amount
Have also tried execute as @s run give @p...
but that isn't working either.
Do I have to somehow anchor the command to a location? I would have thought that the command block's location would be used by default...maybe it isn't though,
Thanks
Update:
If I run axe.mcfunction which has give @s wooden_axe 1
...it works from chat
However, some of the functions aren't being recognized, and that is obviously the issue...like
give @s leatherhelmet 1 28 {display:{color:1476153,Name:Newb},ench:[{id:0,lvl:1},{id:3,lvl:1},{id:4,lvl:1}]}
...even when run in chat returns an error of Error: Player not found
. It only works when I type in the actual username...no variables are working...@s, @p, @a won't work...
Update 2
After playing around some more...
/give @s leatherhelmet 1 28 {display: {Name: "Newb", color: 1476153}}
works with the playername...every time...still doesn't work with the variable.
Update 3
I now have the Advancements being granted correctly...and most of the functions to give items...the only one that isn't working is the one to give colored armor...
I got the command blocks to give the items by using execute as @p run function ...
and the functions use give @p item count
minecraft
minecraft
edited Feb 13 at 13:21
Rdster
asked Feb 11 at 15:53
RdsterRdster
1116
1116
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Some do...I will update.
– Rdster
Feb 12 at 11:49
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13
|
show 4 more comments
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Some do...I will update.
– Rdster
Feb 12 at 11:49
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Some do...I will update.
– Rdster
Feb 12 at 11:49
Some do...I will update.
– Rdster
Feb 12 at 11:49
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13
|
show 4 more comments
1 Answer
1
active
oldest
votes
According to the error messages, it seemed that you are using Essentials? If you are not, the following will not ever be correct.
Use minecraft:give
instead of give
, since Essentials give command does not recognize selectors.
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%2f346374%2fcustom-advancements-and-functions-1-13-2%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
According to the error messages, it seemed that you are using Essentials? If you are not, the following will not ever be correct.
Use minecraft:give
instead of give
, since Essentials give command does not recognize selectors.
add a comment |
According to the error messages, it seemed that you are using Essentials? If you are not, the following will not ever be correct.
Use minecraft:give
instead of give
, since Essentials give command does not recognize selectors.
add a comment |
According to the error messages, it seemed that you are using Essentials? If you are not, the following will not ever be correct.
Use minecraft:give
instead of give
, since Essentials give command does not recognize selectors.
According to the error messages, it seemed that you are using Essentials? If you are not, the following will not ever be correct.
Use minecraft:give
instead of give
, since Essentials give command does not recognize selectors.
answered 1 min ago
Yangyang200Yangyang200
214
214
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%2f346374%2fcustom-advancements-and-functions-1-13-2%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
Does the function work when executed from chat?
– Fabian Röling
Feb 11 at 16:21
Some do...I will update.
– Rdster
Feb 12 at 11:49
That is very weird. There's a syntax error in your leather helmet command, but it's later than the player. Are you sure that you used that exact command? Did you copy it in Minecraft and paste it in here? Please don't re-type it.
– Fabian Röling
Feb 12 at 14:27
Yeah, copy and pasted
– Rdster
Feb 12 at 16:12
That command works if I put my name in...so I guess the syntax error isn't big enough to throw an error...but what is it?
– Rdster
Feb 12 at 16:13