Space sky?

Im making a space datapack and want to make it so when you hit a certain y-level you enter space tho only issue is no matter the y level the sky is blue. How do i make a black sky that is only veiwable by certain players who are in space? Im in 1.21 and im a beginner
Continue to help post