Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. while true do
  2. local seed = math.randomseed(10)
  3. local time = math.random(600)
  4. local timer = os.startTimer(time)
  5. local sleep = math.random(8)
  6. while true do
  7. local event, result = os.pullEvent()
  8. if event == "timer" and timer ==result then
  9. redstone.setOutput("left", true)
  10. os.sleep(sleep)
  11. redstone.setOutput("left", false)
  12. break
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement