The police were called and Smith arrested. Officers found he had Valium tablets in his rucksack.
The second incident happened on April 10 at Barry’s Tesco superstore when he tried to steal a hammer and headphones.
Mr Pinnell said: “The defendant was intoxicated and he was confrontational.”
Smith was arrested and officers this time found he had diazepam tablets on him.
The third and final offence took place on May 2 when he robbed a 14-year-old boy of his iPhone after he grabbed it from him.
The victim’s father and uncle managed to trace Smith and he was arrested.
The defendant told a police officer: “Here’s the phone. Let’s call it quits.