Isharo

DiscoSheep

Jun 28th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. command  /mouton:
  2.     trigger:  
  3.         loop 99999 times:
  4.             wait 1 second
  5.             loop all sheeps:
  6.                 set {_tmp} to random integer between 0 and 8
  7.                 if {_tmp} is 0:
  8.                     set the colour of loop-entity to red
  9.                 if {_tmp} is 1:
  10.                     set the colour of loop-entity to blue
  11.                 if {_tmp} is 2:
  12.                     set the colour of loop-entity to yellow
  13.                 if {_tmp} is 3:
  14.                     set the colour of loop-entity to green
  15.                 if {_tmp} is 4:
  16.                     set the colour of loop-entity to purple
  17.                 if {_tmp} is 5:
  18.                     set the colour of loop-entity to orange
  19.                 if {_tmp} is 6:
  20.                     set the colour of loop-entity to magenta
  21.                 if {_tmp} is 7:
  22.                     set the colour of loop-entity to cyan
  23.                 if {_tmp} is 8:
  24.                     set the colour of loop-entity to pink
Advertisement
Add Comment
Please, Sign In to add comment