According to court documents, the 13-year-old told police he had planned mass murder for many months, had been inspired by other school shooters and massacres.