The teenager is turning his life around after the weapons offences, a court heard.