A Minecraft 1.20.2-1.21.4 datapack to allow configuration of the Ender Dragon AI and also restore old dragon mechanics, like the ender dragon charging at the player mid-flight.
Datapack is in 1.9 mode by default. Run '/function dragonai:config' to open the configuration in-game. Presets are at the top of the config menu. The config menu is in the chat. Click on the buttons with chat open to change settings or load a built-in preset.