MastaC729

Disco Floor Every Other Column Flash

Aug 23rd, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. rednet.open("bottom")
  2.  
  3. instructions = {}
  4. instructions[1] = "on"
  5.  
  6. local speed = 0.001
  7.  
  8. while true do
  9.  for i=1,15 do
  10.   for j=1,15 do
  11.    if j%2 ~= 0 then
  12.      instructions[2] = tostring(j)
  13.      rednet.broadcast(instructions,tostring(i))
  14.      sleep(speed/10)
  15.     end
  16.   end
  17.  end
  18.  
  19.  shell.run("reset")
  20.  sleep(speed)
  21.  
  22.  for i=1,15 do
  23.   for j=1,15 do
  24.    if j%2 == 0 then
  25.      instructions[2] = tostring(j)
  26.      rednet.broadcast(instructions,tostring(i))
  27.      sleep(speed/10)
  28.     end
  29.   end
  30.  end
  31.  
  32.  shell.run("reset")
  33.  sleep(speed)
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment