Don't bother, too much work to do it, possible legal implications, & even if you succeed, potentially too many unproven/unmatched parts to go wrong.
Sell the air rifle & invest in a proven airsoft version (or dress a fal up).
Out of interest though, what brand is the air rifle ?, which is about as much as we can discuss here about airguns according to the forum rules.?