A teenager has been jailed for plotting to blow up his parents because his mother disapproved of his girlfriend.