HomeJavaDatapacksDisable Spawner Mob Spawns
Disable Spawner Mob Spawns
DatapacksJava

Disable Spawner Mob Spawns

by Runterya · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.9–26.2 · Data pack⬇ Download for 1.21.9–26.2 · Fabric⬇ Download for 1.21.9–26.2 · Forge⬇ Download for 1.21.9–26.2 · NeoForge⬇ Download for 1.21.9–26.2 · Quilt
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.
Disable Spawner Mob Spawns — screenshot 1

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

/gamerule spawnerBlocksEnabled false

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

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more