Beginning on 1 August, Americans can download a blueprint for and print, 3-D guns thanks, in part, to a court ruling and a settlement by Donald Trump’s State Department.

Last month, the agency agreed to settle a multi-year legal battle with Texan Cody Wilson, who claimed in a lawsuit the government infringed on his right to free speech for posting the programming code online to print a 3D gun. He was ordered to take it down for violating US export laws.

The administration said in the settlement, which was not made public but provided by his attorneys to certain media outlets, that Mr Wilson’s charity group Defense Distributed could post the code online and it agreed to pay $40,000 of his legal fees.

Mr Wilson first posted the plans for the weapon he called “The Liberator” in 2013.

The single-shot handgun was made mostly of the type of plastic used in Lego save for two small pieces of metal, one of which is the firing pin.

The federal government at the time told Mr Wilson posting the code online to print the weapon violated the International Traffic in Arms Regulations (ITAR), regulations relating to the export of defence materials, services, and technical data.

7,000 pairs of shoes were outside U.S. Capitol to represent children killed by guns since Sandy Hook

While Mr Wilson complied, he did sue the government two years and a reported one million downloads later.

“The government fought us all the way and then all of the sudden folded their tent,” Alan Gottlieb of the Second Amendment Foundation, a gun rights group who assisted Mr Wilson on the case, told CNN.

Though the lawsuit had been filed during the Obama administration, Mr Gottlieb said much of the case had been handled by career civil servants not political appointees of Mr Trump.

America's worst mass shooting incidents Show all 11 1 /11 America's worst mass shooting incidents America's worst mass shooting incidents pp-orlando-victims-1-ap.jpg AP America's worst mass shooting incidents ohio.jpg AP America's worst mass shooting incidents hance.jpg AP America's worst mass shooting incidents westroadsCCTV.jpg AP America's worst mass shooting incidents virginia.jpg AP America's worst mass shooting incidents gale.jpg AP America's worst mass shooting incidents red-lake.jpg AP America's worst mass shooting incidents beltway.jpg AP America's worst mass shooting incidents columbine.jpg AP America's worst mass shooting incidents hennard.jpg AP America's worst mass shooting incidents Pough.jpg AP

Weapons like the plans for which Mr Wilson made open to the public are nicknamed “ghost guns” since they are untraceable without serial numbers and can be easily disassembled.

"I think everybody in America ought to be terrified,” said Avery Gardiner regarding the prospect that Mr Wilson’s weapons printing plans are available to anyone, including terrorists.

“The danger that could happen can be enormous...To have crazy people have easy access, to have terrorists have easy access to this kind of website and allow them to make plastic AR 15s undetected — so-called ghost guns — just defies the imagination,” US Senator Chuck Schumer said.

The AR-15 is a weapon that has often been used in the numerous mass shootings in the US, including in several school shootings because of the large number of bullets it can shoot quickly.

3D-printed weapons are not at the level of sophistication traditional firearms are, but do not presently require a license, permit, or any kind of criminal or mental health background check.

Though 3D printers themselves are still quite expensive - some costing thousands of dollars - it is a growing market and some companies have begun to offer more affordable versions.