Guest User

lolol

a guest
May 15th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1.  function song()
  2.  while true do
  3.  note = read()
  4.  sleep(0.1)
  5.  end
  6.  if note == "1" then
  7.  print(note)
  8.  redstone.setBundledOutput("back", colors.Cyan)
  9.  elseif note == "2" then
  10.  redstone.setBundledOutput("back", colors.Blue)
  11.  elseif note == "3" then
  12.  redstone.setBundledOutput("back", colors.Red)
  13.  elseif note == "3" then
  14.  redstone.setBundledOutput("back", colors.Green)
  15.  elseif note == "4" then
  16.  redstone.setBundledOutput("back", colors.White)
  17.  end
  18.  end
  19.  
  20.  
  21.  
  22.  while true do
  23.  song()
  24.  sleep(0.05)
  25.  end
Advertisement
Add Comment
Please, Sign In to add comment