MigasRocha

Teste

Jul 1st, 2021 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function queimar()
  2.     turtle.turnRight()
  3.    
  4.     for queimar =0,5 do
  5.         turtle.forward()
  6.     end
  7.    
  8.     turtle.drop()
  9.     turtle.turnLeft()
  10.     turtle.turnLeft()
  11.  
  12.     for voltar =0,5 do
  13.         turtle.forward()
  14.     end
  15.  
  16.     turtle.turnRight()
  17. end
  18.  
  19. while true do
  20.     for frente =0,7 do
  21.         local sucess, data = turtle.inspect()
  22.         if sucess == true then
  23.             if data.state.age == 7 then
  24.                 turtle.dig()
  25.                 turtle.place()
  26.             end
  27.         end
  28.         turtle.turnLeft()
  29.         turtle.forward()
  30.         turtle.turnRight()
  31.     end
  32.    
  33.         turtle.turnRight()
  34.  
  35.     for tras =0,7 do
  36.         turtle.forward()
  37.     end
  38.  
  39.     turtle.turnLeft()
  40.  
  41.     if turtle.getItemCount() >= 32 then
  42.        queimar()
  43.     end
  44. end
Add Comment
Please, Sign In to add comment