Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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, "tm:explosion1", 1.0F, 1.0F);
  19. return stack;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement