Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.wrap("right")
- local tArgs = {...}
- local file = fs.open("save2", "r")
- local y = file.readAll()
- file.close()
- if tArgs[1] == nil then tArgs[1] = 1 end
- function legs()
- for i = 1, y do
- turtle.forward()
- end
- turtle.turnLeft()
- y = y + 1
- end
- function whole()
- for i = 1, 4 do
- legs()
- end
- file = fs.open("save2" , "w")
- file.write(y)
- file.close()
- end
- for i = 1, tArgs[1] do
- whole()
- end
Advertisement
Add Comment
Please, Sign In to add comment