Advertisement
Guest User

tree.lua

a guest
Apr 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. g = 0
  2. while g < 100 do
  3.     if turtle.detect() then
  4.         turtle.dig()
  5.         turtle.forward()
  6.     elseif turtle.detectUp() then
  7.         turtle.digUp()
  8.         turtle.up()
  9.     else
  10.         turtle.down()
  11.     end
  12.     g = g - 1
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement