Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = {...}
- length = tonumber(tArgs[1])
- height = tonumber(tArgs[2])
- function checkInv()
- if turtle.getItemCount(1) <1 then
- turtle.select(16)
- turtle.placeUp()
- turtle.select(1)
- turtle.suckUp()
- turtle.select(16)
- turtle.digUp()
- turtle.select(1)
- end
- end
- function turnaround() -- this function makes it so you can't use this program in enclosed spaces. Works though --
- turtle.turnRight()
- turtle.turnRight()
- turtle.up()
- turtle.forward()
- end
- for i=1,height do
- checkInv()
- for d=1,length do
- checkInv()
- if turtle.placeDown() then end
- if turtle.forward() then end
- end
- turnaround()
- end
Advertisement
Add Comment
Please, Sign In to add comment