2

Command block help

Agentdawg's Avatar Agentdawg5/28/18 12:17 pm
2 emeralds 206 5
5/30/2018 7:16 pm
HappyHippo77's Avatar HappyHippo77
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
Posted by Agentdawg's Avatar
Agentdawg
Level 1 : New Explorer
2

Create an account or sign in to comment.

5

NoObIe2962
05/29/2018 3:16 pm
Level 22 : Expert Crafter
history
NoObIe2962's Avatar
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!
2
Agentdawg
05/30/2018 12:40 pm
Level 1 : New Explorer
Agentdawg's Avatar
its all good
1
HappyHippo77
05/28/2018 1:55 pm
Level 45 : Master Ninja
HappyHippo77's Avatar
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.
4
Agentdawg
05/28/2018 2:24 pm
Level 1 : New Explorer
Agentdawg's Avatar
Thank you, have a good day
2
HappyHippo77
05/30/2018 7:16 pm
Level 45 : Master Ninja
HappyHippo77's Avatar
No problem! ;)
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome