Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Test;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.world.World;
- public class test extends Item {
- public test(int id) {
- super(id);
- this.setCreativeTab(CreativeTabs.tabMaterials);
- }
- public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
- {
- world.playSoundAtEntity(player, "tm:explosion1", 1.0F, 1.0F);
- return stack;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement