We investigate the production of the triply heavy baryons Ω b b c and Ω b c c in a scalar bc diquark fragmentation. For this propose we calculate a fragmentation function in a quark–diquark model. The fragmentation probabilities turn out to be almost one order of magnitude larger than the case when a fully perturbative picture is adopted. We also analyze a two stage fragmentation of a heavy quark into a scalar diquark followed by the fragmentation of such a scalar diquark into a triply heavy baryon.