Setting volume of Effect.STEP_SOUND?

Discussion in 'Plugin Development' started by pop4959, May 19, 2014.

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

    pop4959

    I don't see how I can do this, I have set the distance to 0, but the sound still plays for breaking a block. As far as I know there's no way to play the effect without the sound. Does anyone know for sure?

    Here's what I'm using:
    Code:java
    1. if (cmd.getName().equalsIgnoreCase("particles")) {
    2. Player player = getServer().getPlayer(sender.getName());
    3. player.getWorld().playEffect(player.getLocation(), Effect.STEP_SOUND, Material.REDSTONE_BLOCK, 0);
    4. }
     
  2. pop4959 Use playSound:
    Code:
    player.getWorld().playSound(player.getLocation(), Sound.STEP_STONE, 1.0F, 1.0F);
    The first 1.0F is the volume and the second is the pitch.
     
  3. DJSkepter From the way he's saying it, I believe he wants to play the effect without the sound, not the sound without the effect.
     
  4. Offline

    pop4959

    Correct. This is the dilemma, as should be clear in my short OP post. Just wondering if this is possible or not. I haven't found any info on this...
     
  5. Offline

    fearless1333

Thread Status:
Not open for further replies.

Share This Page