grand_mind1

Door

Jan 27th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. print("     Options:        ")
  2. print("                ")
  3. print("       Open            ")
  4. print("                ")
  5. print("       Close           ")  
  6. term.setCursorPos(1,7)
  7. input = read()
  8. if input = "Close" then
  9.   for i = 1,3 do
  10.     redstone.setBundledOutput("bottom",2)
  11.     sleep(1)
  12.     redstone.setBundledOutput("bottom",0)
  13.     sleep(1)     
  14.   end
  15. elseif input == "Open" then
  16.   redstone.setBundledOutput("bottom",1)
  17.     sleep(1)
  18.     redstone.setBundledOutput("bottom",0)
  19.     sleep(1)     
  20. end
Advertisement
Add Comment
Please, Sign In to add comment