On lemmy, accessing it through the website, click on your username in the top-right, and choose 'settings'. On that page, choose Export in the 'Import/Export Settings' section. This will give you a file to save to your computer.
On piefed, go to Account->Edit profile & settings, and use the 'Import' button to choose the file you just saved.
This will import your followed communities and blocked users.