Falling Block disappearing

Discussion in 'Plugin Development' started by mikygit, Apr 4, 2018.

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

    mikygit

    Hello,
    I'm having trouble with spawnFallingBlock. When spawning blocks next to each other, only 1 out of 2 is actually spawned on the map. See code below.

    Code:
    for (int i = -128; i < 128; i++) {
                 Wool md = new Wool();
                 md.setColor(color);
    
                 FallingBlock block = world.spawnFallingBlock(new Location(world, counter, 250, i), md);
                 block.setDropItem(false);
                 block.setGravity(true);
                 block.setInvulnerable(true);
                 block.setVelocity(new Vector(0, -3, 0));
    }
    Any idea why this is happening and how to fix it?

    Thx.
     
Thread Status:
Not open for further replies.

Share This Page