MigasRocha

Casa

Feb 19th, 2021 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. while true do
  2. local item = turtle.getItemDetail(1)
  3. local block,type = turtle.inspect()
  4. --base
  5.     if type.name == "ironchest:crystalchest" then
  6.         suckDown()
  7.        end
  8.    
  9. andar()
  10.       local block,type = turtle.inspect()  
  11.         if turtle.detect() == false then
  12.             turtle.forward()
  13.         if turtle.detect() == true then
  14.             cobblestone()
  15.         if type.name == "minecraft:spruce_logs" then
  16.             turtle.turnRight()
  17.            return
  18.           end
  19.          end
  20.         end
  21.        end
  22.  
  23. function cobblestone()
  24.     local item = turtle.getItemDetail(1)
  25.    local block,type = turtle.inspect()
  26.      turtle.select(1)
  27.     if(item["name"] == "minecraft:cobblestone" then
  28.             sleep(1)
  29.      
  30.     if type.name == "minecraft:hopper" then
  31.            turtle.up()
  32.            turtle.forward()
  33.            turtle.dropDown()
  34.           end
  35.          end
  36.    
  37. if turtle.getItemSpace(1) == 64 then
  38.    sleep(1)
  39.   end
  40.    
  41. if(item["name"] == "minecraft:cobblestone" then
  42.     andar()
  43.        end
  44.  end
  45.    
Add Comment
Please, Sign In to add comment