Flowing Water

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

Thread Status:
Not open for further replies.
  1. Offline

    theDman18

    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. Material.WATER is flowing water.
     
  3. Offline

    theDman18

    Woops, i meant like the type of water that cant make infinite water sources
     
Thread Status:
Not open for further replies.

Share This Page