how do i make vanilla advancements trigger functions?

i want it to trigger a function when you enter the end, and the easiest way to do that seems to be this

Continue to help post