He was also charged with wilful damage after he used a metal object hidden in his pants to etch his first name and several swastikas into three of the four walls in an interview room at the Orewa police station.
Judge Warren Cathcart sentenced Moses to three months' community detention, nine months' supervision, and disqualified him from driving for six months. He ordered the gun be destroyed.
The judge said Moses' offending showed arrogance.
The local man's intentions were well-meaning, and he never hinted he was going to contact authorities, Judge Cathcart told Moses.
"He was there to help you," the judge said.
Police described Moses as "extremely unsteady on his feet", with bloodshot eyes and smelling of alcohol. He was subsequently breath-tested.
He denied discharging the gun and said he was intoxicated because he and his mate had just been possum hunting and that he drove to get to his "missus" who needed something.
When asked why he damaged the station walls, Moses said "that's the way we do it in Gizzie".
Judge Cathcart gave Mosesa two month discount for his youth but warned him he could not keep playing that card, noting a lenient sentence Moses got from a judge in the North Shore District Court in July 2015 for serious and "highly relevant" charges.
He was ordered to do 50 hours community work and to community detention for threatening to kill, assault with intent to injure, doing a dangerous act with a firearm with intent to cause grievous bodily harm, and being armed with intent to commit burglary. Judge Cathcart said he could only assume Moses' youth played a significant part.
Seeking another non-custodial sentence for the latest offending, defence counsel Ann-Jolena Baker said Moses knew he had an underlying problem with alcohol abuse and was now motivated to address it.
He was about to become a father for the first time, so had made significant lifestyle improvements, and was training for farming, training for farming as an alternative, Baker said.
Gisborne Herald