2
Command block help
Hello, so today i was just touching up and this adventure map i have been working on for 8 months now with partners of VECH's and we have run into a problem including command blocks. i needed to apply a potion effect once the player made contact with a certain block in this case they will get nausea once stepping on concrete. I have done this command hundreds of times in some of my other maps but for some reason i am doing something wrong and i cant find out what.
take a look at this command --
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete /effect @p nausea 20 0 true
when i type this command in an error pops up saying
"failed to execute 'detect' as Agentdawgg"(my username)
please if you can see what is wrong let me know, thanks
-agentdawgg
take a look at this command --
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete /effect @p nausea 20 0 true
when i type this command in an error pops up saying
"failed to execute 'detect' as Agentdawgg"(my username)
please if you can see what is wrong let me know, thanks
-agentdawgg
Create an account or sign in to comment.
5
let me tell you how i do it. and i think you did it right by the way
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete 0 /effect @p nausea 20 0 true
oh, you forgot to put a 0 at the end of "concrete"!
by the way just saw the other comment.... i am embarassed!
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete 0 /effect @p nausea 20 0 true
oh, you forgot to put a 0 at the end of "concrete"!
by the way just saw the other comment.... i am embarassed!
its all good
After a bit of experimentation, I have discovered that you need to supply the concrete's "state", which is essentially it's color. here is the new command:
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete 0 /effect @p nausea 20 0 true
That will activate when the player stands on white concrete, if trying to use a different color, change the "0" following "concrete" to one of the following numbers:
White: 0
Orange: 1
Magenta: 2
Light Blue: 3
Yellow: 4
Lime: 5
Pink: 6
Gray: 7
Light Gray: 8
Cyan: 9
Purple: 10
Blue: 11
Brown: 12
Green: 13
Red: 14
Black: 15
Note that these numbers and their respective colors can also apply to wool, stained clay, stained glass, stained glass panes, beds, and concrete powder.
/execute @a ~ ~ ~ detect ~ ~-1 ~ concrete 0 /effect @p nausea 20 0 true
That will activate when the player stands on white concrete, if trying to use a different color, change the "0" following "concrete" to one of the following numbers:
White: 0
Orange: 1
Magenta: 2
Light Blue: 3
Yellow: 4
Lime: 5
Pink: 6
Gray: 7
Light Gray: 8
Cyan: 9
Purple: 10
Blue: 11
Brown: 12
Green: 13
Red: 14
Black: 15
Note that these numbers and their respective colors can also apply to wool, stained clay, stained glass, stained glass panes, beds, and concrete powder.
Thank you, have a good day
No problem! ;)