Hello I need a water mechanic like terraria!

I did this today …after much faff and bother!

water sim

which could possibly be turned into an extension unless theres already something similar. The events are currently complicated and need optimising. Its using simple rules instead of physics and point inside object tests.
It might also be worth (if you can afford it) seeing what vegetato did in his terraria template.
Any terraria copy will already be using quite complicated events and so water logic needs to be really simple and well optimised, and i’m still not entirely sure that this is as yet!