Description
## The Ender Dragon no longer just flies through blocks.
**It brings chaos to the final battle, reshaping the battlefield with every attack.**

## Dragon Mounts: Legacy / Ice and Fire: Dragons Support
**Tip: Press "V" (by default) to enable/disable immersive destruction while riding your dragon.**
**Protect Blocks With NBT is enabled by default in config. Dragons griefing from Ice And Fire can be configured in Ice And Fire config.**
## Block Collision Changes
**The Ender Dragon now sends blocks flying into the air when it collides with them, instead of simply destroying them. It can now destroy additional blocks, including obsidian, iron bars, and end stone. As a result, the Ender Dragon can occasionally destroy obsidian pillars during the fight. Falling blocks deal damage and become regular blocks again when they land.**
### Important:
**If falling debris is not moving smoothly, adjust debrisUpdateInterval in the config.**

## Configuration
**This mod can be configured through the Mods menu or by editing its configuration file.**
### Performance:
**If you're experiencing performance issues, you can lower the debrisSpawnChance.**
### Configuration Options
- debrisUpdateInterval - How often flying debris created by the Ender Dragon visually updates. Smaller values usually mean more frequent visual synchronization (smoother), but worse network performance.
- debrisSpawnChance - Adjusts the chance of debris spawning. Lower values can improve performance.
- debrisMaxDamage - Controls the maximum damage falling debris can deal on impact.
- debrisDistanceDamage - Controls how many blocks falling debris must travel before reaching maximum damage.
- strongerDebrisLaunch - Whether to use a more advanced launch velocity calculation when creating debris.
- dragonTransparentFluids - Whether the Ender Dragon should fly through water and lava or destroy them.
- destroyWaterloggedBlocks - If true, waterlogged blocks become debris and fly away. Ignored if dragonTransparentFluids is false.
- protectBlocksWithNBT - If true, blocks that contain NBT data will be protected.
- protectDragonFromEndermen - Prevents Endermen from targeting the Ender Dragon.
- loudDestruction - Amplifies the Ender Dragon's block destruction sounds.
**[More information about configuration can be found here.](https://github.com/alt778/Ender-Dragon-Destroys-End-Island/wiki)**

## Compatibility
**This mod only modifies the Ender Dragon. It does not modify the End dimension. It should also be compatible with most other mods that modify the Ender Dragon.**
### Complementary Shaders Compatibility
**If debris created by the Ender Dragon appears white when using Complementary Shaders, disable fog in the shader settings:**
**Shader Pack Settings → Atmosphere → Fog → OFF**

## Vanilla Bug Fixes
**This mod also fixes a vanilla bug that can cause the Ender Dragon to collide with its own fireball, making it explode in midair. Fireballs can still naturally collide with nearby obsidian towers or with falling block debris created by this mod.**
**This mod prevents Endermen from targeting the Ender Dragon when damaged by it. The vanilla behavior can be restored through the configuration.**

## Servers
### Recommended mod versions for servers:
- NeoForge / Forge: 2.1.1 or newer
- Fabric: 2.1.0 or newer
- Legacy versions below 2.0.0 should also work on servers
**This mod is server-side. Players do not need to install it on their client to join.**
**Exception: The 1.20.1 Forge version must be installed on both the client and the server when used with Dragon Mounts: Legacy or Ice and Fire: Dragons.**

## Videos
## Useful Commands
**To summon the Ender Dragon:**
```
/summon minecraft:ender_dragon ~ ~ ~ {DragonPhase:0}
```
**To remove the Ender Dragon:**
```
/kill @e[type=minecraft:ender_dragon]
```