TAUNTON — A Brockton man, who police said had more than 21 pounds of pot stashed in a hockey gym bag, is being held on $50,000 bail after his arraignment Friday in Taunton District Court.

Carl F. O’Neal, 23, 3 Burton St., is being charged with a single count of possession to distribute a Class D substance, marijuana.

Police said O’Neal had a chance to retrieve the bag from the trunk of his Honda Accord after rear-ending another vehicle just after 5 p.m. on Thursday at Dean Street and Longmeadow Road, but for some reason declined.

“I’m all set,” he allegedly told an officer, when asked if he had everything he needed from the car before it was towed.

Police said O’Neal hit the rear of a Hyundai Tucson, which in turn rear-ended a Ford Explorer at the heavily traveled intersection.

No one was injured and O’Neal’s car was the only vehicle rendered undriveable, police said.

Patrolman Anthony Pistolese said when he conducted a routine inventory of the trunk, before the car was towed by Tony’s Auto Wrecking, he saw the black hockey bag and smelled a “faint odor of unburnt marijuana.”

Upon opening the bag, Pistolese said he found 19 double vacuum-sealed bags.

He said he also retrieved $3,960 in cash from O’Neal, a Hydrofarm brand programmable timer and books and paperwork from Bridgewater State University.

The 21 pounds and six ounces of marijuana has a street value between $40,000 and $60,000, police said.

O’Neal was taken to the police station where he called his lawyer, police said.

Police said when they contacted O’Neal’s father, who owns the Accord, they asked if the pot in the trunk belonged to him.

“No, no, definitely no,” his father allegedly responded.

Judge Gregory Phillips, who set the $50,000 bail amount, scheduled a pretrial hearing for May 29.