Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("moveAPI.lua")
- print("how far?")
- local far = tonumber(read())
- print("how wide?")
- local wide = tonumber(read())
- function cleanInventory()
- if(turtle.getItemCount(10) > 0) then
- turtle.select(1)
- turtle.placeDown()
- for slot = 2, 16 do
- turtle.select(slot)
- turtle.dropDown()
- end
- turtle.select(1)
- turtle.digDown()
- end
- end
- local right = true
- for i = 1, wide do
- moveAPI.repeatMoves("f dd du", far - 1)
- if right and i ~= wide then
- moveAPI.move("r dd du tr")
- elseif (not right) and i ~= wide then
- moveAPI.move("l dd du tl")
- end
- right = not right
- cleanInventory()
- end
Add Comment
Please, Sign In to add comment