A TEENAGER who assaulted a police officer after challenging others to fight at Rockore Music Festival has appeared in court.

The 16-year-old, who can not be identified for legal reasons, was restrained after concerns about his behaviour by a member of the public.

He previously admitted that on August 17, at Lochore Meadows, he behaved in threatening or abusive manner which was likely to cause a reasonable person to suffer fear or alarm in that he did shout, swear, act in an aggressive manner and struggle with police officers.

He also assaulted a constable then in the execution of his duty, and attempted repeatedly to headbutt, punch and spit on him and bite him on the body, and committed these offences while having been granted bail on May 29.

Also, on May 4 at an address in Lochgelly, he behaved in a threatening or abusive manner which was likely to cause a reasonable person to suffer fear or alarm in that he did shout and swear, threaten violence to his mother, punch holes in a wall, throw household items about, kick and punch a door, break a garden gate and with a knife strike his arm repeatedly causing injury.

Around 3,000 people were at Rockore Music Festival. The teen had been drinking throughout the day with others and was drunk, depute fiscal Katherine Fraser explained.

Another festival-goer alerted the police as he had become rowdy and was challenging others to fight.

PC Bow saw the accused staggering backwards and falling.

After he picked himself up he started shouting and swearing and the officer took hold of him by the left arm.

The teen responded by aggressively swinging his right arm. PC Bow then took the boy to the ground and members of the public also came to assist.

He struggled with the officer and made threats, while also spitting at him.

The teen also tried to get out of a restraint and took hold of PC Bow's calf and tried to bit him.

Other officers then came to help at this point but he was still attempting to free himself, shouting and swearing.

Defence solicitor Aime Allan told the court that her client was placed on a structured deferred sentence on May 7 due to the incident involving his mum.

She said his relationship with his mother had broken down and he was now residing with his grandmother.

Ms Allan explained that the teen had consumed a significant amount of alcohol and could not remember the events that took place at Rockore.

"He appeared to me extremely embarrassed by his actions," she said.

"He fully understands the impact his behaviour has on the community and the police were only there to do their job."

Sheriff James McDonald placed the 16-year-old on a structured deferred sentence and continued his curfew condition to minimise the opportunity to go out drinking.

He will appear for a review of his order on December 12.