Advertisement
Guest User

test

a guest
Dec 18th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function dig(times)
  2.   for i=times, 1, -1 do
  3.     redstone.setOutput("right", true)
  4.     sleep(1)
  5.     redstone.setOutput("right", false)
  6.     sleep(8)
  7.   end
  8. end
  9.  
  10. io.write("How many times: ")
  11. local times = io.read()
  12.  
  13. dig(times)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement