NEW YORK -- Dirk Nowitzki talked about how much it meant to him, after working so hard, so long to get it.
The victory, not the milestone.
Nowitzki moved past Shaquille O'Neal into sixth place on the NBA's career scoring list, then made the go-ahead basket with 19.2 seconds left in overtime in the Dallas Mavericks' 119-118 victory over the Brooklyn Nets on Wednesday night.
Nowitzki will have plenty of time to think about what it means to pass O'Neal, a longtime rival who beat him in the 2006 NBA Finals. But on Wednesday, the most important thing was getting a win a night after a loss in Toronto, and ahead of a long flight back to Dallas.
"That's what I play for, is to compete at the highest level for this franchise, for this team," Nowitzki said. "Obviously No. 6 in the bigger picture is a lot bigger than this win in Brooklyn in December, but when you're out there you don't think about that. You want to get this win bad and fight out there against a talented team."
Thaddeus Young had a season-best 29 points for the Nets.
"He definitely was at another level," Nets center Brook Lopez said. "It was clicking for him. He was making all the right plays."
The Mavericks led by 16 in the first half, trailed by 11 in the fourth quarter, and the game went to OT when Young followed Barea's three-point play with a 3-pointer to tie it at 108, then blocked Barea's shot on the final possession.
Matthews then hit two 3-pointers and Barea added one in the OT, but the ball went inside the arc to the big German with Dallas down by one. After his layup, Jarrett Jack missed a jumper on Brooklyn's final possession.
Nowitzki came in needing 10 points to pass the 28,596 O'Neal scored in a career that could be capped with him being inducted into the Naismith Memorial Basketball Hall of Fame next year.
Nowitzki is sure to get there someday, too, whenever he ends a career that saw him redefine the power forward position, and perhaps create the notion of a stretch-4 that teams now crave.
"You're talking about a guy who's a generational great player. (He) totally redefined the game, redefined a position," Mavs coach Rick Carlisle said.
Nowitzki moved ahead of O'Neal with one of his high-arching jumpers from the corner with 9:51 left in the second quarter, when just about everything the Mavs threw up went in. Dallas started 20 for 25, and Barea made his first eight shots and didn't miss until shooting an airball with the shot clock running out late in the period.
The Nets then made 12 of their first 14 shots of the third to surge into the lead and had a 92-81 advantage in the fourth that it couldn't hold in its fifth straight home loss.
Point guard Deron Williams was sidelined with a strained hamstring, sitting out what would have been his first game back in Brooklyn after the Nets bought out the final two seasons of his $98.5 contract during the summer.
Mavericks: Nowitzki is eighth on the combined NBA-ABA scoring list, behind No. 6 Julius Erving and No. 7 Moses Malone. ... Devin Harris, another former Nets point guard, remained out with a strained right hamstring.
Nets: On Tuesday, Russian billionaire Mikhail Prokhorov's company signed an agreement to purchase full ownership of the Nets and Barclays Center. He had acquired 80 percent of the team and 45 percent of the arena from developer Bruce Ratner in 2010. The transaction is expected to be completed by early 2016. ... Backup point guard Shane Larkin returned after missing four games with a concussion and had seven points.
Williams said he understood why fans might have booed him had he played.
"I think the way I played was disappointing for fans. When you're given a max deal and you don't perform to it, especially in New York, you're going to hear it, and so I understand," Williams said. "I wish things were different, I wish it would have worked out differently but I can't control that and I just move forward."
The road team has won eight of the last nine meetings.
Mavericks: Host Chicago on Saturday.
Nets: Host Washington on Saturday.
Miami Heat's Jimmy Butler says playing from behind 'gets old'
Jimmy Butler said the Heat can't keep creating early deficits, especially against the Celtics, who led by as many as 20 and won Game 3 117-106.
Celtics 'played with the right mentality' in Game 3 win following recent collapses, locker room outbursts
Following two straight collapses down the stretch to open the Eastern Conference finals -- and the accompanying emotional outbursts in the locker room -- the Celtics "persevered" to win Game 3 and get themselves back into their series with the Heat.
Tatum, Brown help Celtics to Game 3 win over Heat
Jayson Tatum puts together a double-double of 25 points and 14 rebounds, and Jaylen Brown scores 26 points as the Celtics bounce back from two straight losses to win Game 3 against the Heat 117-106.