A ROCKHAMPTON magistrate has sentenced a man to time behind bars after he became angry when his dog defecated in a friend's home.

The Rockhampton Magistrates Court heard Codey Clifford Pope Jones, who appeared in court in custody, was a house guest on June 11 when his dog defecated inside the Rockhampton home but Pope Jones refused to clean up the mess.

Police prosecutor acting Sergeant Shaun Janes told the court the victim started to clean up the mess when Pope Jones punched him in the face, punched the wall and threw the victim against the wall.

"Mr Pope Jones got into a bit of strife for a period of time and the dog did something on the couch or in the house and he just lost it," the defence lawyer said.

Pope Jones pleaded guilty to six charges including one count each of assault occasioning bodily harm, possessing drug-related utensils, possessing dangerous drugs, unlawful use of a motor vehicle, engaging in restricted or prohibited activity and two counts of wilful damage.

In a separate incident, Pope Jones took an unlocked car from the front yard of a Rockhampton address in October 2010.

Police found the car in a four-wheel drive track the following day and identified fingerprints in May this year.

Pope Jones told police he didn't remember taking the car but could have been a passenger.

The 22-year-old was nabbed again on June 26 with 1.5 grams of cannabis in the car he was driving, along with three pairs of scissors with cannabis residue, a bong and a cone piece.

"I'm going to provide you with means to do something about your alcohol and anger management issues," Magistrate Cameron Press told Pope Jones.

Pope Jones was sentenced to six months in prison with parole eligibility in one month, 12 months' probation and was ordered to pay $400 compensation.