1

Same Random

Upper_Echelon 8/1/13 11:33 am
247
8/1/2013 5:07 pm
Is there a way to execute multiple commands for one(1) random player?
Posted by
Upper_Echelon
Level 40 : Master Geek
42

  Have something to say?

JoinSign in

6

Spellguard
08/01/2013 3:45 pm
Level 23 : Expert Cake
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!
1
atomick86
08/01/2013 5:07 pm
Level 16 : Journeyman System
This
1
SkullHunter8000
08/01/2013 11:48 am
Level 37 : Artisan Skinner
I don't think so
1
Instant_ReplEH
08/01/2013 11:36 am
Level 31 : Artisan Fisherman
@r I think so like /kill @r
1
Upper_Echelon
08/01/2013 11:39 am
Level 40 : Master Geek
No, I mean like give 2 effects to him/her.
1
Instant_ReplEH
08/01/2013 11:41 am
Level 31 : Artisan Fisherman
hmm.. I'm not sure
1

Welcome