A simple way to disable the end with a gamerule, now ported to 1.21.5 and without oωo dependency
A showcase of gamerule doDisableEnd disabling end portal's ability to teleport a player to The End.