Advertisement
alberto4g

Untitled

May 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function getsLava()
  2.     local bol, data = turtle.inspecDown()
  3.     if bol then
  4.         if  data.name == "minecraft:flowing_lava" then
  5.             turtle.select(1)
  6.             turtle.placeDown()
  7.             turtle.refuel()
  8.         end
  9.     end
  10. end
  11.        
  12. block_count = 1
  13.  
  14. while true do
  15.     if block_count == 16 then
  16.         turtle.turnLeft()
  17.         if turtle.detect() then
  18.             turtle.dig()
  19.         end
  20.         turtle.forward()
  21.         block_count = 1
  22.         turtle.turnLeft()
  23.     end
  24.    
  25.     getsLava()
  26.  
  27.     if turtle.detect() then
  28.         turtle.dig()
  29.     else
  30.         turtle.forward()
  31.         block_count = block_count + 1
  32.     end
  33.    
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement