Advertisement
Guest User

Untitled

a guest
Feb 17th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. public class BlockFireberryBush extends Block
  2. {
  3.     public BlockFireberryBush(String itemName)
  4.     {
  5.         super(Material.leaves);
  6.         setBlockName(Reference.MODID + "_" + itemName);
  7.         setCreativeTab(Pyromancy.tabPyromancy);
  8.         setStepSound(soundTypeGrass);
  9.         setBlockTextureName(Reference.MODID + ":" + itemName);
  10.         setBlockBounds(0.1F, 0.0F, 0.1F, 0.9F, 1.0F, 0.9F);
  11.         this.setTickRandomly(true);
  12.     }
  13.  
  14.     @Override
  15.     public boolean isOpaqueCube()
  16.     {
  17.         return false;
  18.     }
  19.  
  20.     @Override
  21.     public void updateTick(World world, int x, int y, int z, Random random)
  22.     {
  23.             world.setBlock(x,y,z, Pyromancy.harvestableFireberryBush);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement