The charges followed a confrontation between boy racers and a milk tanker on Orini Rd on March 19.
CCTV footage showed the boy racers surrounding the truck, so it was unable to move forward.
Hundreds of litres of milk were then emptied from the tanker after a valve was released.
Videos circulated online showing milk pouring out of the tanker, as well as people surrounding the vehicle as the driver tries to keep his door closed.
The accused, from Glenview in Hamilton, used the claw hammer to smash the truck's windscreen.
He was remanded on bail to reappear for sentencing on July 27.
Hook said if her client was granted the Section 106, she would then file an application for permanent name suppression.