Pinkishu

Untitled

Jun 3rd, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. redStart = nil
  2. while true do
  3.     local ev,p1 = os.pullEvent("redstone")
  4.     if rs.testBundledInput("back",colors.red) then
  5.         redStart = os.clock()
  6.     else
  7.         if redStart ~= nil then
  8.             print("Seconds passed: " .. ( os.clock() - redStart ))
  9.             redStart = nil
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment