Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Title: TangentChronograph
- --Version: Ver. 1
- --Last Revised: N/A
- --Last Revised By: N/A
- --Author: TangentDelta (alias Hydrogen)
- --Platform: ComputerCraft LUA Virtual Machine
- --Description: A chronograph in minecraft, so that you can keep track of how much time you wasted.
- --Notes: Just like TangentClock, except smaller, and now a chronograph
- seconds = 0
- minutes = 0
- hours = 0
- side = "right"
- while not redstone.getInput(side) do
- shell.run("clear")
- print "TangentChronograph Ver. 1"
- print (hours, ":", minutes, ">", seconds)
- print "H:M>S"
- seconds = seconds+1
- if seconds == (60) then
- seconds = 0
- minutes = minutes+1
- end
- if minutes == (60) then
- minutes = 0
- hours = hours+1
- end
- sleep (1) --You might want to edit this if it's too fast/slow
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement