Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How far?") -- Ask
- local n = io.read() -- Reads the input and n=input
- for x=1,n do --Do program this many times
- if turtle.getItemCount(16) > 0 then --reboot if items are in slot 16 eg. turtle=full
- print "Make a program to empty"
- turtle.reboot()
- end
- if turtle.detectUp() == false then
- turtle.placeUp()
- end
- if turtle.detect() == true then
- turtle.dig()
- end
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment