So far as the spacers are concerned, follow the instructions that come with the BB. What you need know for picking a BB are how wide the shell is (this is easily found by flipping the frame upside down and putting a ruler across the bottom of the BB and measuring the width of the metal. That’s going to be 68 or 73mm.
Only other things you need to know are what cranks you plan to fit. Mostly unless it’s SRAM/Truvativ, Campag or any of the press fit stuff you want a standard Shimano HT2 (hollowtech2) BB which will be Threaded with an English Thread (describes pitch and handedness). There are French and Italian thread standards but you’ll almost never see them on a MTB and relatively rarely on road now either.