Precursor decomposition and direct ink writing (DIW) technology were used to successfully prepare BCNO with complicated geometric shapes. PEG400DA photosensitive resin is employed as a printing ink binder and a carbon source for BCNO in this study. BCNO was prepared using various sintering temperatures and PEG400DA content, and BCNO monoliths with emission wavelengths of 442–529 nm can be prepared. The effects of these synthesis conditions on the structure and fluorescence properties of BCNO were investigated. BCNO monoliths can be employed as a suitable material for fluorescence anti-counterfeiting because of their good and controllable fluorescence properties. • According to user demand, BCNO monoliths with complex geometric shapes can be obtained by DIW printing technology. • BCNO with tunable emission wavelengths may be manufactured by adjusting the sintering temperature and PEG400DA content. • A water-based DIW printing precursor slurry was prepared, with PEG400DA serving as both a binder and a carbon source in the slurry.