is there a mob switch for the end?

and if so how do i make it