Biome Detection and Cave Detection

Hello, I’m trying to make a datapack where when a function is triggered it teleports all players to a random place. The place can’t be an ocean or a cave tho so some sort of rtp system on servers, except on datapacks. Thanks

Continue to help post