Advertisement
Guest User

Untitled

a guest
Jul 19th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. package com.buttchili.elements.blocks;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.item.Item;
  8.  
  9. import com.buttchili.elements.ElementalMod;
  10. import com.typesafe.config.ConfigException.Generic;
  11.  
  12. public class ElementalOre extends Block {
  13.  
  14. private String unlocalizedName = "elementalOre";
  15. private Item drop = ElementalMod.elementalNugget;
  16.  
  17.  
  18. public ElementalOre(Material material) {
  19. super(material);
  20. this.setBlockName(unlocalizedName);
  21. this.setCreativeTab(ElementalMod.modTab);
  22. this.setBlockTextureName(ElementalMod.MODID+":"+unlocalizedName);
  23. this.setStepSound(soundTypeStone);
  24. this.setHardness(10.0f);
  25. this.setResistance(20.0f);
  26. this.setHarvestLevel("pickaxe", 2);
  27. }
  28.  
  29. @Override
  30. public int quantityDropped(int meta, int fortune, Random random) {
  31. return 1;
  32. }
  33.  
  34.  
  35. @Override
  36. public Item getItemDropped(int metadata, Random random, int fortune) {
  37. return drop;
  38. }
  39.  
  40.  
  41.  
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement