akihex

doorDelay

Mar 5th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. local delay = 3
  2.  
  3. while true do
  4.   os.pullEvent("redstone")
  5.   if(rs.getInput("bottom")) then
  6.     rs.setOutput("top",true)
  7.     sleep(delay)
  8.     rs.setOutput("top",false)
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment