/execute @p[rm=6] ~ ~ ~ /say The command worked
/execute @p[r=5] ~ ~ ~ /say The command did not work
(both after the /spreadplayers command). The only problem with that is that it will still act as if the command didn't work if a player gets positioned inside the 5 Blocks radius.
EDIT: It is now completely possible with the CommandStat
Data Tag:
/blockdata
Command Block Coordinates
{CommandStats:{SuccessCountName:"
Fake Player Name / Entity / whatever you're gonna use
",SuccessCountObjective:"
Scoreboard Objective Name
"}}
Basically, you can make the SuccessCount output to a scoreboard. See the video below for more info!
.
EDIT 2: Maybe I should mention that you can then do some sort of execute on the entity if it has a score of at least 1. Also, you should set the score back to 0 at the end of every tick (/cycle of the clock).
For this problem, you don't actually need to modify the players score when they are offline (which is possible, but finicky), you should be able to change their score as soon as they log back in.
First, create a scoreboard objective of type stat.leaveGame
:
scoreboard objectives add quits stat.leaveGame
You should then have two command blocks on some kind of clock, one activated after another. In the block that is activated first, put this command:
scoreboard players set @a[score_quits_min=1] timer -1
Then, in the one that is activated second:
scoreboard players set @a[score_quits_min=1] quits 0
The quits
score increments when the player leaves. So, when they log back on, it will be at 1 and their timer score will be set to -1. Their quits
score then has to be set back to 0, so that it can be used for the next logout and also so that timer isn't repeatedly set to -1,
Best Answer
It's possible if your sign do a setblock to make appear a redstone_block next to one of the commands witch make the fill clock work. By keeping the clock command block activated it won't be able to continue looping.
But you will have to do many tests to find the good relative coordinates in the setblock and whenever you add a new command in your one command creation it make not work anymore since your sign may be at a different place so be shure to add it only when you have finished your one command.
To reactivate the clock you must add 3 commands on the sign:
Here is an example of the json needed to add multiple commands in 1 sign:
It's almost the same if you want to do it with a /setblock or /blockdata command.