Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function chopthetree()
  2. repeat
  3. turtle.dig()
  4. turtle.digUp()
  5. turtle.up()
  6. until not turtle.detect()
  7. end
  8.  
  9. while true do
  10. os.pullEvent("redstone")
  11. if rs.getInput("left") then
  12. turtle.forward()
  13. chopthetree()
  14. turtle.back()
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement