However, he said he could see that Pye was essentially a "good boy" who had never previously appeared in court.
Pye was fined $300, given 100 hours' community work and disqualified from driving for six months.
According to police, officers tried to pull over Pye at 2.20am on May 24 when a pursuit began.
At one stage Pye came up behind a tractor unit and trailer carrying logs. He over took the truck at speed. The pursuit was called off due to Pye's speed and weather conditions.
Pye was seen swerving in his lane before coming to a stop on a footpath in Greytown.
A roadside breath test returned a result of under 250 micrograms of alcohol per litre of breath. The limit for drivers under 20 is zero.
Pye told police he had been drinking at a party before driving.
Defence lawyer Virginia Pearson said Pye's actions were a "poor error of judgment" but prosecuting police Sergeant Jodie Lawrence said there was no excuse for his actions.