Posted October 2, 20169 yr Hi, first of all, sorry for possible bad english I am trying to play a sound when the player picks up an Item (using ItemPickUpEvent). The events gets triggered succesfully but the sound will never get played. I'm using event.player.playSound(ModSounds.customSound, 1.0f, 1.0f); The custom sound itself works perfectly when using the command /playsound
October 2, 20169 yr Author EntityPlayer::playSound only works properly when called on both client and server. ItemPickupEvent however is completely serverside. Use one of the alternative methods described in the sound documentation. Thanks! That worked!
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.