Advertisement
TangentDelta

TangentChronograph Ver. 1

Dec 27th, 2011
2,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. --Title: TangentChronograph
  2. --Version: Ver. 1
  3. --Last Revised: N/A
  4. --Last Revised By: N/A
  5. --Author: TangentDelta (alias Hydrogen)
  6. --Platform: ComputerCraft LUA Virtual Machine
  7. --Description: A chronograph in minecraft, so that you can keep track of how much time you wasted.
  8. --Notes: Just like TangentClock, except smaller, and now a chronograph
  9.  
  10.  
  11. seconds = 0
  12. minutes = 0
  13. hours = 0
  14. side = "right"
  15. while not redstone.getInput(side) do
  16.  shell.run("clear")
  17.  print "TangentChronograph Ver. 1"
  18.  print (hours, ":", minutes, ">", seconds)
  19.  print "H:M>S"
  20.  seconds = seconds+1
  21.  if seconds == (60) then
  22.   seconds = 0
  23.   minutes = minutes+1
  24.  end
  25.  if minutes == (60) then
  26.   minutes = 0
  27.   hours = hours+1
  28.  end
  29.  sleep (1) --You might want to edit this if it's too fast/slow
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement