Advertisement
denvys5

TreeCutter

Dec 20th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. function forward()
  2.  redstone.setOutput("right",true)
  3.  sleep(5)
  4.  redstone.setOutput("right",false)
  5. end
  6.  
  7. function backward()
  8.  redstone.setOutput("left",true)
  9.  sleep(5)
  10.  redstone.setOutput("left",false)
  11. end
  12.  
  13. os.pullEvent("redstone")
  14.  for i = 1,44 do
  15.   forward()
  16.   sleep(5)
  17.  end
  18.  for i = 1,44 do
  19.   backward()
  20.   sleep(5)
  21.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement