IsleOfBerk-DeadLockFix
Modby OGPargon
Written to fix a bug in Isle of Berk (Claw of Berk) where dragons would crash the server when "isWaterBelow()" is called.
Type
Mod
CurseForge Downloads
77,276
CurseForge ID
1586849
Last Updated
Jul 28, 2026
Description
IsleOfBerk DeadlockFix
A tiny Forge 1.18.2 compatibility mod that fixes a server-crash chunk-generation deadlock in the Isle of Berk HTTYD dragon mod by the GACMD team (Ghanou Craft, Apprentice Necromancer, TooTHleZZ & Arsian).
ℹ️ Isle of Berk itself is officially discontinued — this patch is for servers still running the final isleofberk-1.2.0 jar on 1.18.2 modpacks such as Isle of Berk (Claws of Berk) by kesselot.
If your server has been dying to ServerHangWatchdog with "A single server tick took 60.00 seconds" while IsleOfBerk is installed — this mod fixes it.
🐉 The Problem
During worldgen, SpeedStinger.checkSpawnRules calls ADragonBase.isWaterBelow(), which performs a Level.getBlockState(BlockPos) read against the full ServerLevel. When that read targets a block in a neighbouring chunk that hasn't finished generating yet, the worldgen worker thread blocks inside ServerChunkCache.getChunk(...).join() waiting for a chunk that's waiting for it — a circular deadlock between Worker-Main-N threads.
After 60 seconds, the server watchdog fires and crashes the entire server.
Telltale symptom in your logs:
[Server Watchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05) …with a stack landing in ServerChunkCache.getChunk under SpeedStinger.checkSpawnRules → ADragonBase.isWaterBelow.
🔧 The Fix
A surgical Mixin (@Inject at HEAD of isWaterBelow()):
- If the calling thread name starts with Worker-Main (i.e. worldgen), it short-circuits to false and returns immediately — no off-thread block read, no deadlock.
- Worldgen spawn checks are the only off-main caller of this method, so the short-circuit only affects spawn-placement decisions during chunk generation (SpeedStingers still spawn fine; they just skip their water check during worldgen).
- All live AI uses (DragonSleepGoal, AIDragonLand, etc.) run on the main Server thread and are completely unaffected — dragon behaviour is identical.
- Uses @Pseudo so it loads cleanly even if IsleOfBerk is missing or refmap generation can't see the target class.
✅ Compatibility
Spec Value Minecraft 1.18.2 Forge 40.x+ Loader Forge (FML) Side Both (server-side fix; client copy is harmless) Required mod isleofberk ≥ 1.2.0This mod only patches IsleOfBerk — zero interaction with other mods, safe to drop into any 1.18.2 modpack that includes IsleOfBerk (e.g. Claws of Berk).
📦 Installation
Drop isleofberk-deadlockfix-1.0.0.jar into mods/ alongside isleofberk-1.2.0.jar.
Start the server. Confirm in the log: [IoB-DeadlockFix] Loaded. Mixin will short-circuit ADragonBase.isWaterBelow() during off-main-thread worldgen.
Enjoy a server that doesn't crash during chunk generation. 🎉
📜 License & Source
- License: MIT
- Source: github.com/Vonix-Network/isleofberk-deadlockfix
- Original mod: Isle of Berk on CurseForge / Modrinth — all dragon content & credit belongs to the GACMD team. This mod just patches one off-thread block read in their final 1.2.0 release.
- Bug discovery + fix: Vonix Network team, originally deployed on our Claws of Berk server.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Kehaan Advancements
Adds more advancements
Luki's Ancient Cities
New Ancient Cities to be lost in.
Epic Dungeons: A Roguelike Journey
Awesome uniquely varied epic dungeons, from the buried Crystal Castle to the spider-infested Forgotten Sewers. Your trav...
Zombie Siege (LootTables) TacZ
adds guns to minecraft and other mod's loot tables.
Jobs+
Adds 10 jobs to Minecraft. You can now add your own jobs!
SmoothMenu Refabricated
Removes the main menu FPS limit. Fabric port of SmoothMenu by BookerCatch