How would you make a tile building system like godot's auto tile tool that the player uses in game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lazulily

I’m making a building game and I would like to know how to make a tiling system like the auto tile tool that godot has, but one that the player in the game would use.
For example, placing down a river or a pond or a grass path.
Not needing to switch between the corner tile and the middle tile at all, just drawing and the game does the rest for you.

How would I make that?