A Douglas teenager will be sentenced next month after admitting carrying a machete-style knife in public.
Morgan John Ritchie of Derby Road appeared before magistrates at Douglas Courthouse.
He admitted possessing an offensive weapon and assaulting a police officer on February 16 on North Shore Road in Ramsey.
Prosecutor Hazel Carroon told the hearing an off-duty officer challenged the 17 year old after spotting him with the 12-inch blade in his hand.
When another officer arrived Ritchie, who was drunk, spat in his face.
There was no bail application and magistrates remanded him in custody to appear in court again on April 1.
Illegal immigrant turned back at Manx border can't stay in UK
Bank scammers warning as calls target Island residents
Island to extend UK VAT cut on power, says Treasury Minister
Woman thanks mystery van driver after daring sea rescue
Stay off damaged slipway in Laxey, says local authority
MHK sues attorney general and returning officer over election votes
Islanders reminded to keep challenging domestic abuse beyond October