Potato cannon legality https://en.wikipedia.org/wiki/Potato_cannon_legality
in US: bare minimum it is a dangerous device as in pelletgun or archery equipment.
how/why its used, as well as ballistic features may cross a threshold.
if you construct a firearm, you must not have legal restrictions on ownership.
if the projectile of a firearm,is an actual .50calibre or greater,that is a destructive device and you must be rigorously vetted to construct or own that