Advertisement
CobraOs

Untitled

Oct 25th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. while not redstone.getInput("top") do
  3.   os.queueEvent("randomEvent")
  4.   os.pullEvent()
  5. end
  6. print("yes")
  7. redstone.setOutput("left", true)
  8. os.sleep(1)
  9. redstone.setOutput("left", false)
  10. if redstone.getInput("left") then
  11.   redstone.setOutput("right", true)
  12.   os.sleep(10)
  13.   redstone.setOutput("right", false)
  14. else
  15.   os.sleep(10)
  16. end
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement