Minecraft sound not working 1.9

I am having a bit of trouble with sounds in my bukkit plugin (Or Spiacquired 1.9) and the difficulty I have is I desire to use this command:

player.playSound(loc, Sound.RECORD_BLOCKS, 1f, 1f);

Which functions fine it"s just. I want the sound to continue playing as the player runs roughly. So I discover that once the command also is executed, the sound plays and also then as you move, the sound disshows up and it can"t be heard unmuch less you go earlier to the place in which the command also was executed.

You watching: Minecraft sound not working 1.9


*

*

The player.playSound(Location place, Sound sound, float volume, float pitch) strategy internally sends a packet to the client by specifying an impact and a given area. Therefore tbelow is not method of changing the location without sfinishing a new packet and also duplicating the sound that the player is already hearing.

However, the third parameter of the previously mentioned method corresponds to the volume of the sound that is played. By raising it, you deserve to widen the radius within which the player have the right to hear the sound. For instance, after a quick test, by setting it to 10, you can hear the music in an approximate 150 blocks radius.

See more: Error Ce-32895-7 - How To Fix Ps4 Error Ce

Hope this helps!


*

Thanks for contributing a response to Stack Overflow!

Please be certain to answer the question. Provide details and share your research!

But avoid

Asking for assist, clarification, or responding to other answers.Making statements based upon opinion; ago them up through recommendations or personal experience.

See more: There Was A Problem Starting C /Program, There Was A Problem Starting C: Program

To learn more, view our tips on composing good answers.


Blog post Your Answer Discard

By clicking “Post Your Answer”, you agree to our regards to business, privacy policy and also cookie plan


Not the answer you're looking for? Browse various other inquiries tagged java minecraft bukkit or ask your own question.


Cannot edit authorize - Bukkit: org.bukkit.command also.CommandException: Untackled exception executing command also 'sign' in plugin X
*

website architecture / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.4.5.38983


Stack Overcirculation functions best through JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange deserve to save cookies on your gadget and disclose indevelopment in accordance with our Cookie Policy.