Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Pick()
- local success, data = turtle.inspect()
- if success then
- print("Block name: ", data.name)
- if (tonumber(data.metadata) == 7) then
- turtle.dig()
- end
- end
- end
- function turnAround()
- local success, data = turtle.inspectDown()
- if success then
- if (data.name == "minecraft:ice") then
- turtle.turnLeft()
- turtle.turnLeft()
- end
- end
- end
- while (true) do
- turtle.forward()
- turnAround()
- turtle.turnLeft()
- Pick()
- turtle.turnRight()
- turtle.turnRight()
- Pick()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement