One of three teenagers caught last summer with swords and guns and charged with planning a killing spree was sentenced Friday to five years in prison for carjacking.

Cody Jackson (search), 15, apologized in court.

"I just want everyone to know I wasn't going to kill anyone," he told Superior Court Judge Samuel D. Natal.

Jackson; Matthew Lovett (search), 19; and Christopher Olson (search), 15, were arrested before dawn July 6 walking down a street in their hometown armed with the swords, handguns, rifles and 2,000 rounds of ammunition. Authorities say they planned to hijack a car, gun down three teens they considered enemies and shoot at random in Oaklyn, a Philadelphia suburb.

The teens approached a motorist, who sped off and called police, and the three were arrested before any shots were fired.

Jackson pleaded guilty in October, and prosecutors dropped charges of murder conspiracy and aggravated assault under a deal that made him ineligible for parole, meaning he will have to serve all five years in prison. In New Jersey, attempted carjacking is charged as carjacking.

Lawyers and relatives of Jackson and Olson said Lovett forced the younger teens to go along with the scheme.

Olson and Lovett also have pleaded guilty in the case. Olson was sentenced last month on a single weapons offense to four years in prison, with no chance of parole for three.

Lovett pleaded guilty Wednesday to carjacking. Prosecutors are recommending a 10-year term at his sentencing in February.