View difference between Paste ID: xHz3nf27 and aPe3nv47
SHOW: | | - or go back to the newest paste.
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(2,6)
22+
mon.setCursorPos(3,6)
23
mon.setTextColor(colors.green)
24
SlowText("LAUNCH INITIATED!")
25
mon.clear()
26
mon.setCursorPos(10,6)
27
--Counter
28
for I=10,1,-1 do
29
mon.clear()
30
mon.setCursorPos(3,2)
31
mon.setTextColor(colors.red)
32
NewNumber = tostring(I)
33
mon.setTextScale(4)
34
mon.write(NewNumber)
35
sleep(1)
36
end
37
--Counter End
38
mon.setTextScale(1)
39
mon.clear()
40-
mon.setCursorPos(7,6)
40+
mon.setCursorPos(8,6)
41
mon.setTextColor(colors.green)
42
SlowText("LAUNCH!")
43
redstone.setOutput("right",true)
44
sleep(1)
45
redstone.setOutput("right",false)
46
sleep(5)
47
mon.clear()
48
--End
49
end