There is no "stock" answer to that question.
First it needs the S/No or Arrangement Number of the original engine to establish what spec it is. (It might well be worth starting with this info to establish things like compression ratios, etc.)
Then it needs the same info for any potential donor engine.
With the above the two engines can be compared and a list can be produced of what needs to be done to convert the donor to the original spec.
I would've thought that things like oil pans, front/rear gear trains, flywheel housing, etc, etc might well be different between the loader and a truck application. However they are all "bolt ons" though, and can be swapped without too much difficulty. If you are thinking that an engine from another totally different application will be a simple drop-in then I'm afraid you're mistaken.