How to fill chunks with flowing water

Discussion in 'Plugin Development' started by ixilon, Nov 17, 2020.

  1. Offline


    I'm using

    import org.bukkit.Material;
    import org.bukkit.generator.ChunkGenerator.ChunkData;

    ChunkData chunkData = ...
    chunkData.setBlock(x, y, z, Material.WATER);

    to fill chunks with water blocks. But these blocks of water do not begin to flow when they are surrounded by air.

    How to create flowing water?

  2. Offline

    timtower Moderator Moderator

  3. Offline


    What function do I have to use to update the block?

    Do you mean the BlockState.update() function?

    I can't get BlockState from ChunkData, only Material, MaterialData and BlockData.

    Do I have to catch an event to update the block?
    Last edited: Nov 17, 2020
  4. Offline

    timtower Moderator Moderator

    @ixilon Why are you using ChunkData then?

Share This Page