Advertisement
MigasRocha

Cobertura

Feb 19th, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. while true do
  2.  
  3. local block,type = turtle.inspect()
  4.  
  5. if turtle.detectDown() == false then
  6.    turtle.select(2)
  7.    turtle.placeDown()
  8.   end
  9.  
  10. if turtle.getFuelLevel() < 10 then
  11.    turtle.select(3)
  12.    turtle.placeUp()
  13.    turtle.suckUp()
  14.    turtle.refuel()
  15.    turtle.dropUp()
  16.    turtle.digUp()
  17.    turtle.select(2)
  18. end
  19.  
  20. if turtle.getItemCount(2) == 0 then
  21.    turtle.select(1)
  22.    turtle.placeUp()
  23.    turtle.select(2)
  24.    turtle.suckUp()  
  25.    turtle.select(1)
  26.    turtle.digUp()
  27.    turtle.select(2)
  28.  end
  29.  
  30. turtle.forward()
  31.    
  32. if type.name == "minecraft:cobblestone" then
  33.    turtle.turnLeft()
  34.    turtle.forward()
  35.    turtle.turnLeft()
  36.   end
  37.  
  38. if type.name == "minecraft:spruce_planks" then
  39.    turtle.turnRight()
  40.    turtle.forward()
  41.    turtle.turnRight()
  42.   end
  43.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement