Hi all, I have a sound that plays when you use an item, but it plays it into the world and stays in one place. How do you make it so it follows the player who used the item?
The code i have is:
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
par2World.playSoundAtEntity(par3EntityPlayer, "revso:turpstervision", 1.0F, 1.0F);
return par1ItemStack;
}
Could you please type out what i need to put.
Also, how do you make it so only one of the sound can be used at once as it is quite long
Thanks,
Joe