
DatapacksJava
Disable Spawner Mob Spawns
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

This datapack flips the new gamerule spawnerBlocksEnabled to false, so mob spawners stop spawning mobs. Natural spawning is untouched.
⚠️ Requires Java Edition snapshot 25w37a or newer (the snapshot that introduces spawnerBlocksEnabled). Works in single-player and servers.
What it does
- On world load, sets:
/gamerule spawnerBlocksEnabled false
Result: all mob spawners won’t spawn anything.
Does not change natural spawning, eggs, commands, or mob farms that don’t rely on spawners.
Install
Drop the ZIP into your world/server datapacks/ folder.
Run /reload (or restart the server).
Uninstall
Remove the datapack.
Re-enable spawners with:
/gamerule spawnerBlocksEnabled true
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 25w37a, 1.21.9-pre1, 1.21.9-pre2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
Verified by MCModsHub
- Downloads as Disable Spawner Mob Spawns.zip
- Download size: 25 KB
- Download link checked 9 Sept 2026 — working
These come from our own check of the pack file, not from the source page.