How to add a bedrock ceiling

I've gotten a basic understanding of how to edit the world with a datapack using the noise settings, dimension type and dimension .json files, and I've managed to make a world that only generates from -64 to 47, by cutting off the build height at 47. My question is, is there an easy way to create a bedrock ceiling on top of the world like the one in the nether? Thanks!

Continue to help post