Minekhan Line/Path Layers -> /setblock Generator

Consecutive positions are connected to form the path.
Press Generate to create commands.