How can I use a datapack to remove a block's default behavior?

I want to script custom behavior for a sponge in a datapack I'm writing, and I also want to remove the default "absorbing" behavior. If I were to type

/datapack disable vanilla

I noticed that sponges would no longer absorb water. I obviously want to keep vanilla enabled, but I'm wondering if it's possible to remove or overwrite the sponge's behavior specifically.


This is handled by the "fluid tag" for water, located in a datapack at minecraft/tags/fluids/water.json. A sponge removes everything that gets added to this tag.

So no, you can not change just this one behaviour of sponges without changing many other properties of water.