#JavaScript, 93 85 bytes
JavaScript, 93 85 bytes
A port of Nick's Python solution.
n=>(g=x=>n--?g(x<y+~z/2n*6n+z%2n>>1n?++x:z<y/6n-~y/6n?++z-z:z=++y-y):[x,y,z])(y=z=0n)
Saved 8 bytes thank to Arnauld's suggestion of using BigInts, plus a couple of other tweaks.