Nathan Holmes, of Tor Close, Monk Bretton, was also in possession of ketamine when he committed the offences on September 29.
He pleaded guilty to assault by beating, criminal damage to the car, a Mercedes C250, using threatening and abusive words or behaviour and possession of a class B drug.
At Barnsley Magistrates’ Court on Wednesday, probation officer Thomas Reid said Holmes, 27, had been out drinking with friends and ‘couldn’t remember the offence at all’.
“He finds it difficult to know why he would’ve acted in such a way,” he added.
“He was unable to remember events but nonetheless takes responsibility for his actions.”
The electrician, who has had no substance misuse problems in the past, was given a 12-month community order requiring 120 hours of unpaid work - reduced from 180 hours for his early guilty plea - with a curfew deemed inappropriate due to his job which requires travelling.
“It doesn’t make good reading,” said chair of the bench Julie Wild.
“You were in drink and can’t remember. Yes, we do give you some credit for taking responsibility.
“Although you are remorseful, we must think of the impact on this victim.”
Holmes was also ordered to pay £500 in compensation for the criminal damage caused, a victim surcharge of £90 and costs of £85.
The forfeiture and destruction of the ketamine was also ordered.