Caught in the rain intoxicated, wet and cold, Blake Jarrod Duggan and a mate set fire to a public toilet to keep themselves warm.
They caused $1700 of damage to the toilet block.
His lawyer told Masterton District Court at sentencing it was a "drunken, stupid foolish act".
The incident put lives at risk, albeit their own, his lawyer says.
Duggan, who previously pleaded guilty to a charge of arson, was sentenced to six months' supervision with orders to attend alcohol and drug counselling.