Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How many hours?")
- h = tonumber(read())
- print("How many minutes?")
- m = tonumber(read())
- s = 0
- done=false
- redstone.setOutput("back", true)
- function check()
- if s <= 0 then
- m = m -1
- s = 59
- end
- if m < 0 then
- h = h-1
- m = 59
- end
- if h<0 then
- done=true
- end
- end
- while done== false do
- term.clear()
- term.setCursorPos(1,1)
- print("Time until finish: "..h..":"..m..":"..s)
- sleep(1)
- s = s-1
- check()
- end
- redstone.setOutput("back", false)
- print("All done...Miner turned off")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement