Structure Spawn Loader: Custom Mob Spawns for Structures

Structure Spawn Loader lets datapacks and mods define structure-specific mob spawns in Minecraft. Build unique encounters with simple JSON files!

Structure Spawn Loader

Vanilla Minecraft ties mob spawning to biomes, which means the mobs you meet inside a village or a fortress are usually just whatever happens to live nearby. Structure Spawn Loader changes that by letting datapacks and mods attach their own spawn lists to structures. If you have ever wanted a haunted mansion that actually feels haunted, or a desert temple guarded by something worse than husks, this utility mod gives you the tools to make it happen.

What Structure Spawn Loader Actually Does

The core idea is simple but powerful. When a structure has at least one mob spawn entry for a given category, such as monster, creature, or ambient, mobs of that category spawning inside the structure's bounds draw from the structure's spawn list instead of the local biome's list. That entry can come from vanilla Minecraft, from a mod that adds the structure, or from this mod or a similar one that injects spawn entries. The result is that structures become self-contained ecosystems rather than passive shells sitting in a biome.

This matters most for modpack authors and datapack creators who want deliberate encounters. A dungeon can spawn exactly the enemies you designed for it, regardless of whether it generated in a plains biome or a dark forest.

JSON Rules and File Format

Spawn entry files live in data/namespace/structure_spawn_loader/path.json. Each file needs a structure field and a spawner field. Files missing either field are ignored entirely, which is actually a feature: a datapack can disable another pack's spawn entry by overriding it with an empty {} JSON.

The recommended naming convention uses the mod or datapack ID as the namespace and a path formatted as structuremod/structure/entitymod/entity. For example, adding an evoker spawn to a village uses a path like minecraft/village/minecraft/evoker.json. If multiple packs share the same namespace and path, they override each other in datapack order.

Inside the Spawner Object

  • type: the namespaced ID of the entity to spawn in the structure.
  • weight: relative weight compared to other entries. Common monsters sit around 100.
  • minCount and maxCount: control group size. Most mobs use 4-4, endermen use 1-4, and witches or zombie villagers use 1-1.

If you are ready to experiment, download Structure Spawn Loader and start writing a few test JSONs. The format is forgiving, and an empty file is a safe way to remove an entry you do not want.

Supported Versions and Loaders

Structure Spawn Loader for Minecraft is built for the Fabric loader, and current releases target modern Minecraft versions. Because it is a utility mod rather than a content mod, it works quietly in the background and pairs well with structure-adding mods and biome overhauls. Mod developers can also depend on it through Cursemaven, and a data provider is included to help with datagenerating spawn entry JSONs. The examplemod in the source repository shows the full workflow.

If you manage a large modpack, the foxygame.net launcher keeps things tidy by offering a curated add-on catalog where Structure Spawn Loader can be added in a single click, with version compatibility handled automatically so your structure spawns keep working across updates.

How to Install

Installing is straightforward. First, confirm you are running a compatible Minecraft version with Fabric installed. Next, place the mod jar in your mods folder alongside Fabric API. Then launch the game once to generate config directories, and drop your spawn entry JSONs into the appropriate datapack or mod data path. If you are writing files by hand, keep a backup before testing, since a malformed JSON will simply be skipped rather than crash the game.

For datapack authors, the fastest path is to create a small test structure entry, load a world, and watch what spawns inside. Adjust weights and counts until the encounter feels right.

Final Thoughts

Structure Spawn Loader fills a gap that vanilla Minecraft leaves wide open. It hands control of structure encounters to the people who care most about them: pack makers, map builders, and mod developers. Whether you are building a horror-themed dungeon or just want villages to feel more alive, the JSON-driven approach keeps things flexible and easy to iterate on.