1
* This problem has been fixed.*
Hello people of Earth, the Internet and PMC. I am creating a map which involves using a flashlight. I am using end portals for the light but that's not the point. The point is, I am using /execute for my command (A valid command by the way) but it does not work. Now before you scroll down the page to write how '/execute' is used, I would like to point out that...
The command block message displayed below the command to point out errors is COMPLETELY BLANK (Well, it has a hyphen, but that doesn't mean anything, does it?). When I do the command in the normal chat, nothing comes up.
The only way the command works is if I take away the detecting part and leave just the command it is supposed to execute (/setblock). Here is the command (Oh and btw you need to have a score for "on" of 1 for the command to work (as I planned for it to). One last thing before you see the command: It sets an end portal above you (SO DON'T JUMP) and you must be standing on brown stained clay.
So here is the command, please tell me what I did wrong
/execute @a[score_on_min=1,score_on=1] ~ ~ ~ detect ~ ~-1 ~ stained_hardened_clay 12 /setblock ~ ~2 ~ end_portal 0 keep
Hello people of Earth, the Internet and PMC. I am creating a map which involves using a flashlight. I am using end portals for the light but that's not the point. The point is, I am using /execute for my command (A valid command by the way) but it does not work. Now before you scroll down the page to write how '/execute' is used, I would like to point out that...
The command block message displayed below the command to point out errors is COMPLETELY BLANK (Well, it has a hyphen, but that doesn't mean anything, does it?). When I do the command in the normal chat, nothing comes up.
The only way the command works is if I take away the detecting part and leave just the command it is supposed to execute (/setblock). Here is the command (Oh and btw you need to have a score for "on" of 1 for the command to work (as I planned for it to). One last thing before you see the command: It sets an end portal above you (SO DON'T JUMP) and you must be standing on brown stained clay.
So here is the command, please tell me what I did wrong
/execute @a[score_on_min=1,score_on=1] ~ ~ ~ detect ~ ~-1 ~ stained_hardened_clay 12 /setblock ~ ~2 ~ end_portal 0 keep
3
Thanks guys, I think the command failed because there were so many commands running at once, or maybe because I was running it on a (vanilla) server.
It does seem like the command should be working, assuming you have your scoreboards set up correctly. I can't test it myself right now, however everything looks ok.
The thing I would check is the clock you're using to run the command. Usually if execute commands fail they update the output message in the command block with something annoying like 'Failed to execute', or maybe something about the UUID being in an invalid format. Is there a time stamp with the hyphen, and if so, is it recent? Are you sure the command is actually being run on the clock?
The thing I would check is the clock you're using to run the command. Usually if execute commands fail they update the output message in the command block with something annoying like 'Failed to execute', or maybe something about the UUID being in an invalid format. Is there a time stamp with the hyphen, and if so, is it recent? Are you sure the command is actually being run on the clock?
Did you set your score to 1? Because I don't think you did. If you do:
/scoreboard players set @p on 1
,then the command should work just fine!
/scoreboard players set @p on 1
,then the command should work just fine!
