[Solved] How can I make a sponge absorb lava too?

Discussion in 'Spigot Plugin Development' started by gogobebe2, May 14, 2015.

  1. 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.
    #1 gogobebe2, May 14, 2015
    Last edited: May 14, 2015
    • Like Like x 1
    • Funny Funny x 1
    • Useful Useful x 1
  2. ´

    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 :)
  3. 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.
    #4 gogobebe2, Jul 10, 2015
    Last edited: Jul 10, 2015
    • Agree Agree x 1
  4. 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.
  5. This thread was made a year ago xD