IsleOfBerk-DeadLockFix
No reviews yet
Written to fix a bug in Isle of Berk (Claw of Berk) where dragons would crash the server when "isWaterBelow()" is called.
Addresses and fixes known bugs and issues.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
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.0jar 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 tofalseand 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 mainServer threadand are completely unaffected — dragon behaviour is identical. - Uses
@Pseudoso 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.0 |
This 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.jarintomods/alongsideisleofberk-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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources