Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = {...}
- local times
- -- if no arguments are passed, assume 1
- if tArgs[1] == nil then times = 1
- else
- times = tArgs[1]
- end
- for i=1,times do
- while not turtle.forward() do end
- if facing == 0 then z = z+1 end
- if facing == 1 then x = x-1 end
- if facing == 2 then z = z-1 end
- if facing == 3 then x = x+1 end
- shell.run("savePos")
- end
Advertisement
Add Comment
Please, Sign In to add comment