Flowing Water

Discussion in 'Plugin Development' started by theDman18, Apr 18, 2013.

  1. Offline

    theDman18

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So I have this code here :
    Code:java
    1. public void fireWater(Location loc, int amount) {
    2. for (int i = 0; i < amount; i++) {
    3. Byte blockData = 0x0;
    4. FallingBlock fire = loc.getWorld().spawnFallingBlock(loc.add(0, 0.5, 0), Material.STATIONARY_WATER, blockData);
    5. fire.setVelocity(loc.getDirection().multiply(1D));
    6. }
    7. }


    My question is, how can I change the type of water that is fired? Like, the flowing water kind. Is there a specific way to do it or is it impossible? thanks!
  2. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Material.WATER is flowing water.
  3. Offline

    theDman18

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Woops, i meant like the type of water that cant make infinite water sources
  4. Offline

    Digi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 2 times. It was last edited by Digi Apr 18, 2013.

Share This Page