Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local item = turtle.getItemDetail(1)
- local block,type = turtle.inspect()
- --base
- if type.name == "ironchest:crystalchest" then
- suckDown()
- end
- andar()
- local block,type = turtle.inspect()
- if turtle.detect() == false then
- turtle.forward()
- if turtle.detect() == true then
- cobblestone()
- if type.name == "minecraft:spruce_logs" then
- turtle.turnRight()
- return
- end
- end
- end
- end
- function cobblestone()
- local item = turtle.getItemDetail(1)
- local block,type = turtle.inspect()
- turtle.select(1)
- if(item["name"] == "minecraft:cobblestone" then
- sleep(1)
- if type.name == "minecraft:hopper" then
- turtle.up()
- turtle.forward()
- turtle.dropDown()
- end
- end
- if turtle.getItemSpace(1) == 64 then
- sleep(1)
- end
- if(item["name"] == "minecraft:cobblestone" then
- andar()
- end
- end
Add Comment
Please, Sign In to add comment