Jump to content

Play default minecraft sound


fritzcat

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.