Collect all 100 slimes, then speak with His Royal Wobbliness to trigger the sequence. From there you face Dozebas and the confrontation with Cloeon and his allies.
Win that fight and the Hero Sword is yours. The 100-slime requirement is the real gate, so if the well will not open, that count is almost certainly where you are short.