It was in late January that the man came to the police house and announced that he had a weapon in the car. He has since been detained on suspicion of weapons offences.

The suspect says the 3D-printed weapon was never meant to be used and that he came to the police because he wanted to be locked up. He has felt very bad and the crime became a way to get away from his everyday life.

"I could have destroyed the weapon and continued to try to get help. But it probably hadn't gone so well, the man said during the trial.

He claims that he himself never fired live ammunition with the weapon and that he was surprised that the police managed to fire four shots before the weapon stopped working.

Want to feel good again

Prosecutor Mats Wihlborg, who asked for a prison sentence of 2.5 years, believes that the fact that the weapon worked and that the man also had live ammunition should make it a serious weapons crime, and not weapons offenses of the normal degree.

His defense attorney Shantu Wahlgren therefore believes that this is not a serious crime. She is seeking probation and treatment. She also wants a new so-called Section 7 examination done to determine the man's mental state.

"Everyone else is sitting here in the room because of 3D weapons, but XX is sitting here because he wants to feel good again," Wahlgren said during his closing speech.

At the beginning of the investigation, the man claimed in interrogation that he had manufactured and sold about 50 weapons. That, he says, is now a lie because the judiciary would have better reasons to detain him. Police have also found no signs or evidence that the man has sold weapons.

Judgment will be announced on April 6 at 11 a.m.

See more of the weapon and trial in the clip above.