Guest User

startup

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