Mar 21st 2019 #1 Sorry I know, me again. Code event.getPlayer().playSound(SOUND_FILE, true, 1.0f, 1.0f, 10.0f, 100.0f, player.getPosition()); Is there a way to change the volume of a sound after the sound loop has been created?
Mar 21st 2019 #2 Yes, you can either set the volume in the playSound() function (3rd parameter) or alternatively you can use the setSoundVolume() function (although it isn't fully tested yet), e.g: Java //Start a new custom sound effect int soundID = player.playSound(...); //Change volume to 0.5 player.setSoundVolume(soundID, 0.5f); Please let me know if that doesn't work