Advertisement
MigasRocha

teste

Jul 2nd, 2021
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. function queimar()
  2.     turtle.turnRight()
  3.    
  4.     for baixo =1,5 do
  5.         turtle.down()
  6.     end
  7.    
  8.     for frente1 =1,5 do
  9.         turtle.forward()
  10.     end
  11.  
  12.         turtle.turnLeft()
  13.    
  14.     for frente2 =1,32 do
  15.         turtle.forward()
  16.     end
  17.  
  18.         turtle.turnLeft()
  19.         turtle.turnLeft()
  20.  
  21.     for frente3 =1,32 do
  22.         turtle.forward()
  23.     end
  24.    
  25.     turtle.turnRight()
  26.    
  27.     for frente4 =1,5 do
  28.     turtle.forward()
  29.     end
  30.    
  31.     for cima =1,5 do
  32.         turtle.up()
  33.     end
  34. end
  35.  
  36. while true do
  37.     for frente =0,7 do
  38.         local sucess, data = turtle.inspect()
  39.         if sucess == true then
  40.             if data.state.age == 7 then
  41.                 turtle.dig()
  42.                 turtle.place()
  43.             end
  44.         end
  45.         turtle.turnLeft()
  46.         turtle.forward()
  47.         turtle.turnRight()
  48.     end
  49.    
  50.         turtle.turnRight()
  51.  
  52.     for tras =0,7 do
  53.         turtle.forward()
  54.     end
  55.  
  56.     turtle.turnLeft()
  57.  
  58.     if turtle.getItemCount() >= 32 then
  59.        queimar()
  60.     end
  61. end
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement