This datapack simply removes the Ender Dragon entity if it exists in a loaded chunk. You will not be soft locked in the end, as the portal back to the overworld does light when the dragon is removed.
Tested on MC version 1.20.1 and 26.1.2
Optional config to remove the dragon egg too (by default egg still spawns):
/function dragonbegone:disable_dragon_egg
