I made this node set up after a long time of experimenting, and it turns out that the solution is pretty simple. It can be used to mix textures together on mountains and landscapes, and probably a lot of other stuff. I thought other people would find it useful (because I wanted to do this one time but couldn’t find out how) so here it is!
I hope this can help out some people!