there is a technique to maximise the pad performance but it’s not essential, as the ‘just ride the bike’ crew will no doubt try and argue, and many people don’t really care too much about such things anyway.
But if you do care… 🙄 the point of bedding in is actually to deposit a thin layer of pad material onto the disc, so firstly you need a very clean rotor – use IPA and some kitchen roll. Then ride down a slight decline with the brake on, gradually increasing pressure and thus generating heat in the pad and disc. At the end increase lever pressure, then release and allow the disc to cool. Repeat the procedure again, about four times, each time allowing the disc to cool. This will repeatedly leave layers of pad material on the disc surface. On mtbs this is possibly less crucial than, say, on racing motorbikes.