Void one shots player

Hi i want to make a datapack what kills player who is in the void with one hit. I never made a single datapack. I thought chat gpt would help but he's not good datapack creator. If anyone knows how to do that i would be very grateful for help.

Continue to help post