A 23-year-old man has been handed a four year jail term for a spate of offences, including the planning of a stabbing spree in York City Centre.
Offender Jack Forest Cave, told his probation officer that he planned to travel to a park on a "sunny day" where he would then "stab lots of people".
York Crown Court also heard that Cave allegedly travelled into the city armed with a knife, but did not pursue his plan as there were not enough people in the vicinity.
Prosecutor Chris Moran told the court that Cave had also told his probation about plans to stab a police officer in the near future.
Cave pleaded guilty to threatening to kill the police officer, as well as a plethora of lesser charges such as assault and criminal damage.
The Recorder of York, Judge Sean Morris, said: "I will not take risks with the lives of the public and police officers in particular."
The judge also wanted “to pass the appropriate sentence to protect the public" adding that he did not want to wait for Cave to stab someone.
Defence barrister Neal Kutte, in an attempt of mitigation, said that the defendant had been diagnosed with an emotional unstable personality disorder.
He said: "There is clearly a genuine medical problem that has led to this offending."
In addition to the custodial prison sentence, Cave must also serve a four year extended prison licence.