A Melbourne teenager who plotted to behead a police officer in an Anzac Day terror attack will spend at least seven and a half years in prison.

Sevdet Ramadan Besim, now 19, pleaded guilty to a single terror-related charge over his 2015 plan to run down an officer and behead him in a rampage that would ultimately end in the teenager’s own death.

Besim was handed a 10-year jail sentence in the Victorian supreme court on Monday and must serve at least seven and a half before he is eligible for parole.

Justice Michael Croucher said Besim’s planned “putrid act” was aimed at advancing violent jihad, intimidating the government and striking fear into hearts of the wider community.

The murder plot would also terrify every law enforcement officer in the country and their loved ones, he said.

“To the vast majority of the community, it’s unfathomable an 18-year-old boy planned to kill a law enforcement officer, to crash into him with a car and then behead him with a knife,” Croucher said.

Besim chose Anzac Day to “make sure the dogs remember this as well as there fallen heros [sic]”.

He said he was “ready to fight these dogs on there [sic] doorstep”.

“I’d love to take out some cops,” Besim said in online chats with a UK teenager, where he discussed his deadly ideas. “I was gonna meet with them then take some heads ahaha.”

The court heard Besim was radicalised by older, influential extremists he met at the now defunct Al-Furqan Islamic Centre, including senior Islamic State recruiter Neil Prakash.

He was also greatly affected by the 2014 death of his friend Numan Haider and became alienated from mainstream society.

Haider, 18, was shot dead outside Endeavour Hills police station after stabbing two counter-terrorism officers. Besim was with him in the hours before the attack.

Corrections Victoria found a hand-drawn Islamic State flag in his jail cell last September as well as a collection of newspaper clippings about violent jihadis fighting overseas. One of the articles referred to Australian terrorist Khaled Sharrouf, who gained infamy after his young son was pictured holding a severed head.

Croucher said he was not persuaded Besim had rejected his radical beliefs, and protection of the community was an important consideration. “I’m not persuaded to accept ... he has in fact renounced violent jihadism.”

But the judge also said Besim’s guilty plea, previous good character, apparent contrition and youth suggested his prospects of rehabilitation were good.

Besim pleaded guilty to one count of conspiring to do an act in preparation for or planning a terror act. The charge carries a sentence of life imprisonment.

Besim blew kisses to a large group of supporters as he was led from the dock.

