Chaos was caused on Invercargill streets earlier this year by a man who chased police with a home-made sword.
The 24-year-old defendant, who has final name suppression, appeared in the Invercargill District Court this week.
Judge Catriona Doyle said "this behaviour is likely to have been caused by your mental health issues and use of alcohol", which led to her suppressing his identity.
In February, police were called to the man’s house.
The defendant saw the police and went inside.
When he returned he was wearing all-leather motorcycle gear.
"I’m going to end this. I want you all to burn," he told the police.
He then went back into his house and reappeared wearing a helmet and holding a sword.
He walked towards the police, lifted the sword above his head and smashed it on to the bonnet of the patrol car hard enough to dent it.
There were two people in the car at the time.
The officers retreated, but the sword-wielding defendant continued to chase after them.
He then used the weapon to hit another car that belonged to an Invercargill lawyer, denting and scratching the boot.
The defendant got on his motorcycle and drove it away from police on the wrong side of the road.
He crashed in Regent St and then walked down the road waving the sword around and chasing a member of the public.
While he was on foot the police challenged him, prompting the man to confront them with his home-made weapon once more.
The defendant threw the sword down and sat on the ground for a moment.
Shortly after, he was arrested.
In the police car, the defendant continued to threaten the officers.
"I want to kill you guys. I’m going to f...ing kill you all," he said.
"This is out of character for you in terms of the seriousness of this offending," Judge Doyle said.
She encouraged the man to accept his diagnoses, stay away from alcohol and take his prescribed medication.
"There is concern that you have a genetic disposition to have some difficulties with alcohol and substance abuse," the judge said.
She sentenced him to one year’s intensive supervision and two months’ community detention and disqualified him from driving for one year and one day.
She also ordered the destruction of the sword.
The judge told the defendant’s family: "I hope this is a wake-up call and he will now accept the help he needs".
The defendant’s parents were asked if they had anything to say, they replied with "thank you".