Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local distance = io.read()-- gets the first argument from the user
- if distance ~= nil then
- distance = tonumber (distance) -- make it a number
- for i = 1, distance do
- turtle.forward()
- end
- else
- print ("Did not specify distance.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement