Nike622000

Untitled

May 4th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. --Timer--
  2.  
  3. --Zeit in Sekunden
  4. t = 3
  5. --Seite Inputs
  6. i = "left"
  7. --Seite Output
  8. o = "right"
  9.  
  10. while true do
  11. if rs.getInput(i) then
  12. print("Timer ist AN")
  13. else
  14. print("Timer ist AUS")
  15. end
  16. sleep(1)
  17. event = os.pullEvent("redstone")
  18. end
  19.  
  20. while true do
  21.  
  22. if rs.getInput(i) then
  23. redstone.setOutput(o, true)
  24. sleep(t)
  25. redstone.setOutput(o, false)
  26. sleep(t)
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment