Mineuniverse
Log in Register
Mods

Spawn Recursion Guard

Prevents rare but severe recursive entity spawn loops that can crash heavily modded Forge servers and worlds.
by lulululand
Download Claim this project
62 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library Server Utility Utility & QoL

Spawn Recursion Guard (Forge 1.20.1)

Spawn Recursion Guard is a lightweight Forge utility mod designed to protect modded worlds from recursive entity spawn loops — a class of bugs where entity spawn logic unintentionally triggers itself repeatedly, leading to server crashes such as StackOverflowError or “Exception ticking world”.

This mod does not change normal mob spawning, difficulty scaling, or gameplay balance.
It only activates when a spawn occurs during an active spawn call chain, preventing infinite recursion while allowing the original spawn to complete normally.


What this mod does

  • Adds a low-level re-entrancy guard to entity spawning

  • Prevents “spawn → spawn → spawn → …” recursion loops

  • Works automatically — no configuration required

  • Safe to add to existing worlds

  • Server-side only (clients do not need it)


What this mod does not do

  • Does not limit normal spawn rates

  • Does not cap mob counts

  • Does not disable features from other mods

  • Does not modify or redistribute any other mod’s code


When should you use this?

This mod is useful if you experience crashes involving:

  • EntityJoinLevelEvent

  • /summon being called repeatedly

  • Stack traces that repeat spawn-related methods

  • Interactions between multiple difficulty / AI / mob enhancement mods

It is especially helpful in large or experimental modpacks where many mods react to entity spawns.


Compatibility & Ethics

  • This mod contains only original code

  • It does not bundle or modify any other mod

  • It uses standard Forge and Mixin techniques at runtime

  • Not affiliated with or endorsed by any other mod authors

Spawn Recursion Guard
MC Client, 1.20.1, Forge, Server
Release 2026-01-08 Get

You Might Also Like

Liberty's Villagers
Quality of Life and AI improvements for Villagers
9,968,428
No More Pop-ups
A Minecraft mod to remove in-game pop-ups
996,708
BetterRandomSourceConcurrencyCrash
Improved logging of crashes caused by mods accessing RandomSources from the wrong thread
99,371
Exit Confirmation
Often accidentally closed Minecraft? This mod might help!
99,067
NoDynamicFps
Adds an option to disable Vanilla's Dynamic FPS implementation
99,004
Immersive Crafting
Adds crafting recipes to immersive portals
9,998