A Bradford teenager is in court accused of making a CO2 bomb.
Leeds Crown Court heard the 16-year-old, who cannot be named, made a potential explosive filled with shrapnel and told pupils he was going to "go on a rampage" and "kill many people".
The court was also told the boy said to fellow students in 2017 he was going to carry out a school shooting and had praised Adolf Hitler.
He denies five terrorism-related offences. The trial continues.