Пример #1
0
  /** Called when the block is attempted to be harvested */
  public void onBlockHarvested(
      World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer) {
    if (par6EntityPlayer.capabilities.isCreativeMode) {
      par5 |= 8;
      par1World.setBlockMetadataWithNotify(par2, par3, par4, par5);
    }

    super.onBlockHarvested(par1World, par2, par3, par4, par5, par6EntityPlayer);
  }