Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isAtop(blockName)
- local _, b = turtle.inspectDown()
- return b and b.name == blockName
- end
- while true do
- if turtle.detectDown() and not isAtop("chisel:cloud") then
- local turn = turtle.turnRight
- if isAtop("quark:midori_pillar") then
- turn = turtle.turnLeft
- end
- turn()
- turtle.forward()
- turn()
- turtle.forward()
- end
- turtle.placeDown()
- turtle.forward()
- if turtle.getItemCount() < 1 then
- for i = 1, 16 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- end
- end
- if turtle.getItemCount() < 1 then
- return
- end
- end
- end
Add Comment
Please, Sign In to add comment