This might help. And I emphasise might because it seems way too complicated for your task but it works and is made for 1.2. Essentially, you need some way of avoiding damage from your bosses and some way to deal damage.Seen plenty of PC boss farms but wanted to see if there was a decent one for mobile. Keep dying on hardmode bosses. Perks of being terrible at being a mage.
Also cba to google one