Spawn 360° Falling Blocks help

Discussion in 'Plugin Development' started by deleted_91027365, Nov 23, 2015.

Thread Status:
Not open for further replies.
  1. Hey,

    I want to spawn round about a player falling blocks. Like a fountain. My try was:

    Code:
                     
    FallingBlock block = e.getPlayer().getWorld().spawnFallingBlock(e.getPlayer().getLocation(), Material.GLASS, (byte) 0); 
     FallingBlock block1 = e.getPlayer().getWorld().spawnFallingBlock(e.getPlayer().getLocation(), Material.GLASS, (byte) 0);
                       for (int i = 0; i < 180; i++){
                       block.setVelocity(new Vector(i, 1.1, -i));
                  
                       block1.setVelocity(new Vector(-i, 1.1, -i));
                       }
    But it did not worked :( It says in console: Filtered out Large getEntities call at <loc>

    How can I do this?

    -dT-
     
  2. Offline

    Lordloss

    Sorry but this what you do here makes absolutely no sense. You just create 2 fallingblocks at the location of the player, and change their velocity 180 times in the same moment.
     
  3. Offline

    pie_flavor

    @dunklesToast Setting the velocity of the block isn't going to create a new block, it's just going to set the velocity of the block. I think you meant to put the block definitions in the for loop as well.
     
Thread Status:
Not open for further replies.

Share This Page