Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local block,type = turtle.inspect()
- if turtle.detectDown() == false then
- turtle.select(2)
- turtle.placeDown()
- end
- if turtle.getFuelLevel() < 10 then
- turtle.select(3)
- turtle.placeUp()
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- turtle.digUp()
- turtle.select(2)
- end
- if turtle.getItemCount(2) == 0 then
- turtle.select(1)
- turtle.placeUp()
- turtle.select(2)
- turtle.suckUp()
- turtle.select(1)
- turtle.digUp()
- turtle.select(2)
- end
- turtle.forward()
- if type.name == "minecraft:cobblestone" then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- if type.name == "minecraft:spruce_planks" then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement