Posted May 24, 201510 yr I need help with playing a default minecraft sound (not a custom one) when I right click my pickaxe. Here is my code: @EventHandler public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { par3World.playSoundEffect(, p_playSoundEffect_3_, p_playSoundEffect_5_, p_playSoundEffect_7_, p_playSoundEffect_8_, p_playSoundEffect_9_); return true; } I don't know how what to put there. Any suggestions?
May 24, 201510 yr I need help with playing a default minecraft sound (not a custom one) when I right click my pickaxe. Here is my code: @EventHandler public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { par3World.playSoundEffect(, p_playSoundEffect_3_, p_playSoundEffect_5_, p_playSoundEffect_7_, p_playSoundEffect_8_, p_playSoundEffect_9_); return true; } I don't know how what to put there. Any suggestions? (soundName, x, y, z, pitch, volume) Not sure about 2 last... sound name for mc sounds will be minecraft:soundName. For modded, modid:soundName Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
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.