Beispiel #1
0
  ///////////////////////////////////////
  // Visualize
  private void playOutSoundAndParticles() {
    world.playSound(
        location,
        Sound.EXPLODE,
        4,
        (1.0F + (random.nextFloat() - random.nextFloat()) * 0.2F) * 0.7F);

    if (this.power >= 2.0F && this.breakBlocks) {
      // send huge explosion
      world.spigot().playEffect(location, Effect.EXPLOSION_HUGE);
    } else {
      // send large explosion
      world.spigot().playEffect(location, Effect.EXPLOSION_LARGE);
    }
  }