Advertisement
LokeYourLord

GC Launch System

Sep 3rd, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mon = peripheral.wrap("back")
  2. --SlowPrint Start
  3. function SlowText(Text)
  4.  for I=1,string.len(Text) do
  5.   NewText=string.sub(Text,I,I)
  6.   mon.write(NewText)
  7.   sleep(0.1)
  8.  end
  9. end
  10. --Slowprint End
  11. --Start
  12. mon.clear()
  13. while true do
  14.  while true do
  15.   sleep(0)
  16.   if redstone.getInput("bottom") then
  17.    break
  18.   end
  19.  end
  20. mon.setTextScale(1)
  21. mon.clear()
  22. mon.setCursorPos(7,6)
  23. mon.setTextColor(colors.green)
  24. SlowText("LAUNCH INITIATED!")
  25. sleep(8)
  26. mon.clear()
  27. mon.setCursorPos(10,6)
  28. --Counter
  29. for I=10,1,-1 do
  30. mon.clear()
  31. mon.setCursorPos(4,2)
  32. mon.setTextColor(colors.red)
  33. NewNumber = tostring(I)
  34. mon.setTextScale(4)
  35. mon.write(NewNumber)
  36. sleep(1)
  37. end
  38. --Counter End
  39. mon.setTextScale(2)
  40. mon.clear()
  41. mon.setCursorPos(5,3)
  42. mon.setTextColor(colors.green)
  43. SlowText("LAUNCH!")
  44. redstone.setOutput("right",true)
  45. sleep(1)
  46. redstone.setOutput("right",false)
  47. sleep(5)
  48. mon.clear()
  49. --End
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement