Making it so bottling water removes the source.

Hi, is there any way to make a datapack which makes it so whenever you bottle water (multiple times if possible) from a source it removes the water source itself?

I dont really have alot of experience with datapacks that actually change game mechanics so idk how id begin making this, only structure related json files.

Continue to help post