View difference between Paste ID: rDyK6Dch and Q089fnhc
SHOW: | | - or go back to the newest paste.
1
package Test;
2
3
import net.minecraft.creativetab.CreativeTabs;
4
import net.minecraft.entity.player.EntityPlayer;
5
import net.minecraft.item.Item;
6
import net.minecraft.item.ItemStack;
7
import net.minecraft.world.World;
8
9
public class test extends Item {
10
11
	public test(int id) {
12
		super(id);
13
		this.setCreativeTab(CreativeTabs.tabMaterials);
14
	}
15
16
	public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
17
	{
18-
		world.playSoundAtEntity(player, "Test:explosion1", 1.0F, 1.0F);
18+
		world.playSoundAtEntity(player, "tm:explosion1", 1.0F, 1.0F);
19
		return stack;
20
	}
21
	
22
}