Advertisement
Guest User

door

a guest
Dec 17th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. while true do
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Up or Down?")
  5. local input = read("*")
  6. if input == "up" then
  7. redstone.setOutput("top", true)
  8. sleep(5)
  9. redstone.setOutput("top", false)
  10. end
  11. if input == "down" then
  12. redstone.setOutput("back", true)
  13. sleep(5)
  14. redstone.setOutput("back", false)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement