How to Use the Minecraft Mob Spawner Command Generator
The Mob Spawner Command Generator on mctoolbox.net lets you create custom spawner commands for Java Edition Minecraft. You start by selecting the mob type you want the spawner to produce, such as Zombie, Skeleton, or Blaze. Then you configure the spawn count, which is how many mobs appear in one spawn cycle, and the delay between spawns. The tool also lets you set the nearby cap, which limits how many mobs of that type can exist within a certain radius, and the player range, which determines how close a player must be for the spawner to activate. Finally, you set the spawn range, which is the area around the spawner where mobs can appear.
Once you have configured all the settings, the generator outputs two commands: a /setblock command and a /give command. The /setblock command places a spawner block at a specific coordinate with your custom settings. For example, you can use it to place a custom spawner in your world at a location you choose. The /give command gives you a spawner item that you can place manually in the world. Both commands are ready to copy and paste directly into your Minecraft chat or command block. This makes it easy to add custom spawners to your builds, adventure maps, or survival worlds.
To use the generated commands, you need to have cheats enabled in your world. In single-player, open your world to LAN and allow cheats, or create the world with cheats on. In multiplayer, you need to be an operator (OP) to run commands. Once cheats are enabled, open the chat window and paste the command. For the /setblock command, you will need to specify the coordinates where you want the spawner to be placed. The generator includes placeholder coordinates like ~ ~ ~, which you can replace with actual numbers or use the tilde notation to place it relative to your current position.
Version differences are important to keep in mind. This generator is designed for Java Edition 1.13 and later, as the spawner command syntax changed significantly in the 1.13 update. In older versions, the command structure was different and not supported by this tool. If you are playing on Bedrock Edition, the commands are not compatible, as Bedrock uses a different command system. Always check your Minecraft version before using the generated commands. For most players on modern Java Edition versions, the commands will work without issues.
Here are some practical tips for using custom spawners. If you want a spawner that activates quickly, set the delay to a low number, like 20 ticks (1 second). For a challenging dungeon, increase the spawn count and reduce the player range so mobs appear close to the player. The nearby cap is useful for preventing too many mobs from accumulating, which can cause lag. You can also combine the /give command with a command block to create a system where players receive a custom spawner as a reward. Experiment with different settings to find the perfect balance for your gameplay or map design.
Three command formats
Outputs /setblock for placing directly in the world, modern Java /give using data components, and a legacy /give with BlockEntityTag for older versions.
All six spawner parameters
Spawn count, minimum and maximum delay, max nearby entities, required player range, and spawn radius. Every setting the game actually reads.
Updates as you drag
Commands regenerate instantly on every change. No submit button, no page reload. Change the mob and the delay updates in the same breath.
Min and max stay in sync
Drag the minimum delay above the maximum and the maximum follows automatically. You can not accidentally write a command that Minecraft would silently ignore.
Questions people actually ask
How do I use this? Start here.
Three steps. First, pick a mob from the list on the left. Second, adjust the sliders to control how the spawner behaves. Third, copy one of the three commands at the bottom and run it in your world. That is the whole thing.
How do I find the X Y Z coordinates to use with /setblock?
Press F3 in Java Edition to open the debug screen. Look for "XYZ" on the left side, it shows your exact position in blocks. Walk to the spot where you want the spawner, note the three numbers, and type them into the X Y Z fields. Alternatively, leave them as ~ ~ ~ and the spawner will be placed right at your feet when you run the command.
Which command should I use, /setblock or /give?
Use /setblock if you want to place the spawner at a specific coordinate right now. Use /give if you want to hand the spawner to a player as an item so they can place it themselves. The modern Java give command uses the data component format. If you are on an older version, grab the Legacy one.
What does Spawn Count actually control?
It is how many mobs the spawner tries to spawn per activation. The keyword is "tries" because the game also checks the Max Nearby Entities cap before each attempt. If four zombies are already standing next to the spawner and your cap is four, nothing spawns even if Spawn Count is set to eight.
What is the difference between Spawn Range and Required Player Range?
Spawn Range is the radius around the spawner block where mobs can actually appear. Required Player Range is how close a player needs to be for the spawner to start ticking at all. If no player is within that radius, the spawner is completely dormant, which is the intended vanilla behavior.
Why are the delays in ticks instead of seconds?
Because Minecraft internally uses ticks and the NBT stores tick values. Twenty ticks equal one second, so the tool shows the conversion next to each slider. The default range is 200 to 800 ticks, which is 10 to 40 seconds, the same range vanilla dungeon spawners use.
Can I spawn any mob, including bosses?
Yes. The list includes everything from zombies and blazes to wardens and iron golems. A spawner technically accepts any entity ID. Whether the result is fun or a disaster in your world is entirely your problem.
Does this work on Bedrock Edition?
The commands here are Java Edition NBT format. Bedrock uses a completely different spawner system and does not support custom spawner commands in the same way. If you are on Bedrock you would need to use behavior packs instead.
Will the generated command work in command blocks?
Yes, both /setblock and /give work inside command blocks. The commands can get long, especially with all six parameters, but command blocks handle them fine. Just paste the whole thing in.