
iafdragonfix
IAF Dragon Den Fix A lightweight Forge mixin mod that fixes a server/client crash caused by Ice and Fire's Dragon Dens and Dragon Roosts generating outside the available chunk region.
About this Mod
IAF Dragon Den Fix
A lightweight Forge mixin mod that fixes a server/client crash caused by Ice and Fire's Dragon Dens and Dragon Roosts generating outside the available chunk region.
The Problem
Ice and Fire's dragon dens and roosts place blocks across a large radius (30+ blocks for caves, 20+ for roosts) during world generation. When these structures generate near the world border or chunk loading boundary, the generation code attempts to access chunks that are not loaded in the WorldGenRegion cache, throwing RuntimeException: We are asking a region for a chunk out of bound and corrupting the save.
How It Works
This mod uses Mixin to intercept two methods in WorldGenRegion:
getBlockState — Returns air instead of crashing when a feature tries to read a block from a chunk outside the region's cache.
addFreshEntity — Silently cancels entity spawning (e.g. the dragon itself) when the target position is outside the available chunks.
Dragon dens and roosts still generate normally. Only the portions that extend beyond the loaded region are gracefully truncated. No structures are skipped, and normal world generation (trees, ores, etc.) is completely unaffected.
Installation
Drop iafdragonfix-1.0.0.jar into your mods folder.
Requirements
Minecraft 1.20.1
Forge 47+
Compatibility
Tested with Ice and Fire 2.1.13-1.20.1-beta-5
Does not modify Ice and Fire itself — compatible with other IAF addons
Safe to add or remove at any time
Available Versions
How to Install iafdragonfix on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "iafdragonfix". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
iafdragonfix server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is iafdragonfix compatible with forge?
iafdragonfix officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with iafdragonfix – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if iafdragonfix consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Rent Modded Server
Install iafdragonfix with just one click on your server.