Posted December 13, 20204 yr I am using the playSound function with a custom sound and it's works with no problems in a singleplayer world but whenever I try to play it on a multiplayer world the sound doesn't play. It is executing just fine because I put a logger there but it just isn't playing the sound. If anyone has any ideas or a solution please let me know! Thanks! Edited December 14, 20204 yr by Ron_Parker
December 14, 20204 yr Author Ok, I think I fixed the Keybinds but i'm a little lost on the packet sending. I took a shot at it but I don't know what to pass in for player? Is there a library file that would show something like this in action? 'Cause I was thinking of how a potion bottle sound plays to the player and all players around, that's kinda what i'm trying to do. I updated the Git repository if you would like to take a look.
December 14, 20204 yr Howdy You might find this working example (tutorial project) useful. It sends a packet from the client to the server. In your case, the server should play a sound in response to the packet. https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe60_network_messages -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.