Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
- turtle.turnRight()
- turtle.turnRight()
- end
- for h=1,height do
- turtle.up()
- checkInv()
- turnaround()
- for l=1,length do
- checkInv()
- turtle.placeDown()
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment