Where can I get the code that implements sponge water absorbing? I want to re-implement it and make it absorb lava as well. I suspect I'd need to use BlockPlaceEvent or BlockPhysicsEvent. Is there anywhere where I can see how Minecraft did it and implement my own version? If not then I'll just implement it myself :/ [Edit] Couldn't find the Minecraft code so just implemented myself.
´ please note you cant use my source to make the same plugin, or sell it. You may only donwload the plugin for your own use, or your friends, as long you take no payments for it. if you wanna know how its coded pm me
Why are you bumping this thread that is marked solved? Go away please. It's not hard to code. Stop acting like it is. I did it in less than 10 minutes when I couldn't find the most optimized way or mojangs strategy simply because I don't like to re-invent the wheel.
You plugin does not work, everytime you break a block near the water/lava source or water/lava the water/lava expands and create more water/lava sources.
https://github.com/gogobebe2/SpongeLava Except I made it more like how world guard does it with water. If you place it and remove it, the water doesnt come flowing back in. With this it just stays as a stationary block.