Advertisement
Click16

simplefall Turtle Program

Mar 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. -- Mikemattt16's simple tree breaker program
  2. local height = 0;
  3.  
  4. -- Rise
  5. while turtle.detectUp() and turtle.getFuelLevel() > height do
  6.     turtle.digUp();
  7.     turtle.up();
  8.     height = height + 1;
  9. end
  10.  
  11. -- Fall
  12. for i = height, 1, -1 do
  13.     turtle.down();
  14. end
  15.  
  16. height = 0;
  17.  
  18. print("Done :D");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement