nezd

Untitled

Apr 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. red = component.proxy(component.list("redstone")())
  2. local bottom = 0
  3. local front = 3
  4. function wait(seconds)
  5.   local start = os.time()
  6.   repeat until os.time() > start + seconds
  7. end
  8. while true do
  9.   if red.getInput(bottom) > 0 then
  10.     wait(50)
  11.     red.setOutput(front, 15)
  12.     wait(5)
  13.   else
  14.     red.setOutput(front, 0)
  15. end end
Add Comment
Please, Sign In to add comment