He also was satisfied the man did not know his actions were morally wrong.
The relationship between the boy's parents had ended, but the father sometimes stayed at the mother's home unit.
She was out when he repeatedly stabbed the boy before leaving the unit and stabbing a neighbour and a man visiting relatives in the block.
In his recorded police interview the next day, the man gave rambling answers, asserting "voices told me to sacrifice", if he did not "kill my own" then "Armageddon would occur" and "I am Armageddon ... I am a weapon ... of mass destruction".
With respect to the attack on the two men, he said: "If I didn't, I'd be used as Armageddon and the world would be blown up."
One psychiatrist said he had no doubt, from watching the interview, that "there was a very unwell man".
On occasions, the man asked about voices which he believed were real, asking police: "Did you hear that? They said I'm insane" and "Did you hear that? They said happy birthday".
The judge ordered the man to be detained as a forensic patient until, or if, he was deemed to not be a danger to the public or himself.
- AAP