Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Title: TangentClock
- --Version: 1
- --Last Revised: N/A
- --Last Revised By: N/A
- --Author: TangentDelta (alias Hydrogen)
- --Platform: ComputerCraft LUA Virtual Machine
- --Notes: It's a clock, man!
- minutes = 0
- hours = 0
- function clock()
- for seconds = 0, 60, 1 do
- print (hours, ":",minutes,">", seconds)
- if seconds == (60) then
- minutes = minutes + 1
- clock()
- end
- if minutes == (60) then
- hours = hours + 1
- minutes = 0
- end
- sleep (1) --you might have to edit this if the seconds are off
- end
- seconds = 0
- end
- clock()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement