1
Same Random
Is there a way to execute multiple commands for one(1) random player?
Create an account or sign in to comment.
6
1
You'll need four command blocks and 1 scoreboard objective(/scoreboard objectives add random dummy)The first command block executes this command:
/scoreboard players add @r random 1
Then the next two commands activate on a delay from the first from a repeater. These would be the two effects that you want. In fact, you could have an unlimited amount of effects here.
/effect @p[score_random_min=1] (whatever effect you want here)
Then the last command block needs to be powered last of all.
/scoreboard players set @a random 0
Hope that helped!
/scoreboard players add @r random 1
Then the next two commands activate on a delay from the first from a repeater. These would be the two effects that you want. In fact, you could have an unlimited amount of effects here.
/effect @p[score_random_min=1] (whatever effect you want here)
Then the last command block needs to be powered last of all.
/scoreboard players set @a random 0
Hope that helped!
1
This
1
I don't think so
1
@r I think so like /kill @r
1
No, I mean like give 2 effects to him/her.
1
hmm.. I'm not sure