SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local mon = peripheral.wrap("back")
|
| 1 | + | local mon = peripheral.wrap("top")
|
| 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
|
| 16 | + | if redstone.getInput("left") 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 | redstone.setOutput("back",true)
| |
| 25 | SlowText("LAUNCH INITIATED!")
| |
| 26 | sleep(8) | |
| 27 | mon.clear() | |
| 28 | mon.setCursorPos(10,6) | |
| 29 | --Counter | |
| 30 | for I=10,1,-1 do | |
| 31 | mon.clear() | |
| 32 | mon.setCursorPos(4,2) | |
| 33 | mon.setTextColor(colors.red) | |
| 34 | NewNumber = tostring(I) | |
| 35 | mon.setTextScale(4) | |
| 36 | mon.write(NewNumber) | |
| 37 | sleep(1) | |
| 38 | end | |
| 39 | --Counter End | |
| 40 | mon.setTextScale(2) | |
| 41 | mon.clear() | |
| 42 | mon.setCursorPos(5,3) | |
| 43 | mon.setTextColor(colors.green) | |
| 44 | SlowText("LAUNCH!")
| |
| 45 | redstone.setOutput("right",true)
| |
| 46 | sleep(10) | |
| 47 | redstone.setOutput("right",false)
| |
| 48 | redstone.setOutput("back",false)
| |
| 49 | sleep(5) | |
| 50 | mon.clear() | |
| 51 | --End | |
| 52 | end |