In what ways can you detect if the player is near or in a terrain block(ex: water) This is how much I know:

--I don't know

Can someone help me?