Liquid Spreading

Discussion in 'Plugin Development' started by Connor2weirdness, Apr 7, 2014.

Thread Status:
Not open for further replies.
  1. I posted something similar to this a while ago, but since that nobody has seen it/never will I am making a slightly different post.

    I want to make water/lava infinitely spread. Yes, there's already a plugin for that. But, the liquid does not spread around it. What I mean is that if you place a bucket of liquid on a block high up, the liquid will not spread around it, it will only spread downwards.

    To sum this all up, I basically want to re-create the same liquid physics as in Minecraft classic - Lava Survival.

    [​IMG]

    ^ Lava spreading in every direction except UP ^

    Plugin I tried: http://dev.bukkit.org/bukkit-plugins/endlessflow/


    Thanks.

    Bump.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  2. Offline

    iPoke111

    Connor2weirdness
    This plugin will probably lag your server just saying, but...

    In a scheduler task:
    For every block in every loaded chunk of your world, check if it's lava. Then check if the blocks around it in every direction (except up) are air. Then if they are, set them to lava. Unless you want it going through blocks... Also, grass and stuff should sort itself out when the lava naturally spreads.
     
  3. Not really sure how to do this, but thanks. Any other way? That's simple?
     
  4. Offline

    iPoke111

    Connor2weirdness
    sorry, that's the simplest way I can think of. This isn't really my area of code, I'm just trying to help everybody out xP
     
  5. Ah ok, I appreciate it. Thanks. Anyone else?
     
  6. Offline

    RingOfStorms

    This will no-doubtedly crash any server that runs it, but you can use the BlockSpread event (or a similar event, im not sure which one is applicable to water currently off the top of my head) and set the flowing water into normal source blocks of water.

    Again, not sure what you're trying to achieve with this as it will crash the server because the water never stops expanding.
     
Thread Status:
Not open for further replies.

Share This Page