Sign up ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I want to change the type of my mob spawners on my server. My server is a vanilla server, as it has no mods. Is there a way I can edit it without mods? If not, is there a mod I can get to change them?

share|improve this question

6 Answers 6

up vote 9 down vote accepted

Method 1: Programs and whatnots

(Please refer to MBraedley's answer for the main points. This is just an add-on to it/repeating what he said.

The Program MCEdit has a mob spawner editing function. Simply left click the spawner with your mouse released.

The Essentials Bukkit plugin allows the changing a spawner type. Just point your cursor at the spawner and use /spawner [new mob type].

The NotEnoughItems (NEI) mod allows the spawning of mob spawners with pre-existing metadata. Just spawn one in from the side menu and place it down. (Note: Does not work without the NEI mod)

Method 2: Vanilla Minecraft

With the introduction of the /setblock command, and it allowing the choosing of NBT tags...

/setblock <x> <y> <z> <block_id> <block_damage> <old_block_handling> <tile_entity_data>
/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:<ENTITY ID>,SpawnData:{<MOB NBT TAGS>}}

The EntityId tag within the mob spawner's Tile Entity allows the player to define what entity it spawns. However, if the SpawnProtentials tag is defined (and is compounded with entries within it), the EntityId tag will have its value changed based on the weights within the SpawnProtentials tag.

Not defining one (a SpawnProtentials tag) will result in the mob that you have defined to indefinitely spawn.

The EntityData tag can be added (is optional) and is used to define the entity it spawns. For example, adding EntityData:{NoAI:true} would make everything it spawn not have any AI.

Not defining one will default to the default NBT values for the entity you've defined.

See the Command Blocks NBT section of the wiki to see the other tags.
Also note that the data value of the spawner does nothing.

You can modify blocks (as pointed out by MBraedley with the /blockdata command.

Simply look for a spawner and use the following command:

/blockdata <x> <y> <z> <new_data>
/blockdata <x> <y> <z> {EntityId:[New Entity to spawn],SpawnData:{[Any mob NBT Info}}

All NBT tags found on the wiki can be used here too. Just note that existing NBT tags (that you have not defined) when using this command will not get overridden or removed.
/blockdata only creates new or changes existing NBT data. It does not delete any.

So, a (let's say Zombie) with {customName:"Creeper",NoAI:1} had the command /entitydata @e[type=Zombie,r=3] {customName:"Zombie",IsBaby:1} executed on him.
The resulting mob will still have the NoAI tag. (Results in: {customName: "Zombie",IsBaby:1,NoAI:1}.
The same principle occurs for /blockdata.

Without further ado, try:
And then place a redstone torch/block/whatever beside/behind/on top/underneath/whatever it..

/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:Item,Delay:1,SpawnData:{Item:{id:"diamond",Count:1},PickupDelay:1}}

Moar Diamonds!

/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:Zombie,Delay:1,SpawnData:{IsBaby:1,Riding:{id:Chicken}}

Or something from this little short.

Alternatively, (scroll down)

share|improve this answer
The blockdata command can also be used to modify existing spawners. –  MBraedley Dec 24 '14 at 0:33
@MBraedley Noted and added. –  aytimothy Dec 24 '14 at 0:53

The answer below, while still valid, is not representative of what's currently possible. @aytimothy's answer describes how this problem can be solved in vanilla Minecraft.

As @SaintWacko said, there is no way to edit spawners in vanilla Minecraft, even in creative mode. MCEdit will let you do this, though. It's a separate program for editing worlds. It's probably not the best tool for the job, and you'll have to know where the spawners are that you want to change in order to do the work effectively. You'll also have to take the server offline while you do the work. This also assumes you can sit down at the server, or at least get a remote desktop of it, otherwise you'll have to transfer the world to your home machine to do the work.

share|improve this answer
That's true, this would allow you to do it while still keeping the server vanilla, although it's not as easy, and you would be the only one that could do it. –  SaintWacko Aug 25 '12 at 18:00
*poke* As the accepted answer, care to update to reflect the changes in this aspect of vanilla Minecraft? –  SevenSidedDie Dec 24 '14 at 0:15
Um.. @MBraedley, I only added on the commands bit since you already covered MCEdit and those sorts of programs. –  aytimothy Dec 25 '14 at 15:48

As of 1.7.9 (might be one or two updates off, give or take) you can now change the mob a spawner spawns, by "using" a spawner egg on it.

Normally mob spawners only spawn

  • Spiders
  • Zombies
  • Skeletons
  • Blazes (Nether)

However, using this technique, you can now spawn any mob you wish, from villagers to Endermen, so long as it has a spawn egg you can use.

Some mobs you should be careful with, however are

  • Creepers, for their natural ability to, well... Explode. The repercussions should not need explanation.
  • Ghasts. They can't actually destroy the spawner itself, but they can wreak some havoc on the surrounding area.
share|improve this answer
Can Endermen pick up spawners? (I thought it was one of their banned blocks, but I'm going off fuzzy memory.) –  SevenSidedDie Dec 23 '14 at 15:59
@SevenSidedDie yes they can –  Ben Dec 23 '14 at 22:04
That answer says they can't. –  SevenSidedDie Dec 24 '14 at 0:13
Whoops, read that wrong. I believe I read it somewhere, but it's likely outdated. It would make sense that they can no longer pick them up. Edited answer. –  Ben Dec 24 '14 at 2:00
I would also like to add Creepers have a Spawner. –  Virusboy Dec 24 '14 at 15:15

In 1.8 and later you can use(default right-click) spawn egg on the mob spawner to change the spawner type. This will make the spawner same as vanilla-generated spawners. But if you want to change the spawn properties or do something more advanced, you have to use /blockdata command. Check out these pages :

share|improve this answer
This should be the accepted answer –  Sentinel Gaming Dec 26 '14 at 21:00
Just for information, you can find complete changelog of Minecraft 1.8 here : –  QbsidianH20 Dec 27 '14 at 1:13

You cannot edit spawners in vanilla minecraft. The Spawner GUI mod will allow you to change the spawner type, as well as being able to pick up the spawner, and disable it with a redstone signal. It require's Risugami's Modloader, but that's pretty common, and actually makes it easier. There is an explanation on the page I linked to, but if you have any trouble, let me know here. I'll be around for a while, waiting for GW2 :D

share|improve this answer

You can install Too Many Items to set up the spawners, then save the world and move it to the server. The spawner changes don't rely on TMI once you've made the changes, and will stay how you set them up.

There is a specific number at the end of the spawner ID, like for an exp orb spawner (random) it would be 52:2. (I found this out when I started using Too Many Items because it shows the ID.) For an enderman spawner, the ID extension would be 52:58.

share|improve this answer
Yes, but they cannot implement this on a vanilla server. –  Jeffrey Lin Dec 15 '12 at 23:50
oh i didn't know –  lll Dec 16 '12 at 23:57
But can I download Too Many Items, then create a single player world, place spawners, then switch the world to a server? –  Shadow Z. Dec 19 '12 at 1:23
@ShadowZ. Yeah, that works. The data stays changed in the save even once TMI is no longer running. –  SevenSidedDie Dec 26 '14 at 20:28

protected by agent86 Dec 19 '12 at 21:45

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.