Your code was missing the data value (the 0 after the mob_spawner) and the handler (replace, destroy, keep). As well, it's highly recommended to use the name ID (mob_spawner) instead of numerical (52), because numerical IDs are being removed in the future. There was also a curly bracket that was both not needed and didn't have an appropriate ending bracket.
EDIT:
Your second command had 'EntityID' instead of 'EntityId'; the tags are all case-sensitive.
/setblock ~ ~ ~ mob_spawner 0 destroy {EntityId:Zombie} chang the Zombie part to what every entity you want and wala (to get entity ids type entity id list in google)
if you have access to type commands you typically have access to /gamemode creative which means you can change any spawner to whatever you can summon via a spawn egg
/setblock ~ ~ ~ mob_spawner 0 replace
this sets the generic spawner .. now put a spawn egg (zombie for example) into your inventory and throw into the spawner .. now put a spawn egg of something else (cave spider for instance) and throw into the spawner .. whichever spawn egg you use becomes the spawner entity .. just something that seems to be a little known tidbit .. you can create a villager spawner or anything really
To those who want to make their own instead of relying on a generator, according to the wiki, "EntityId" tag is deprecated in 1.9, therefore, the following command is tested and working:
If misspelled, you get either an empty block or a pig spawner. All other tags should work.
EDIT: Sorry for reviving the post from the shallow grave, but this was the first thing that popped up when googling how to do this so when I figured it out, I thought the best place was here.
The following command places a pig spawner:
/setblock ~5 ~ ~ 52
Now. After that, I'm stuck.
I've tried:
/setblock ~5 ~ ~ 52 {EntityId:Skeleton}
/setblock ~5 ~ ~ 52 [EntityId:Skeleton]
You can replace x y z and tilename with tilde (~).
Since you want to set a spawner 52 is the correct data value.
oldblockHandling is what you want to do with the old block. You can use: keep, replace, or delete.
datatag is the entity you want to set the block to.
So try
Here is a wiki with all datatags: http://minecraft.gam...om/Chunk_format
Here is a thread with a decent tutorial on these commands: http://www.minecraftforum.net/topic/1969520-17-using-summon-give-datatags-in-map-making-tutorialswip
/setblock ~ ~ ~ ~ 52 {EntityId:{id:"Skeleton"}
Results: "There is no such block with ID/name ~
Too many ~'s,
Took one out, and did:
/setblock ~5 ~ ~ 52 {EntityId:{id:"Skeleton"}
Results: '{EntityId:{id:"Skeleton"}' is not a valid number
Gonna play around with it some more for a bit.
Perhaps I'll have to do the /spawn command with falling sand and have it change into a spawner..?
/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityID:Zombie} places an empty spawner...
Now...
The correct command is:
Your code was missing the data value (the 0 after the mob_spawner) and the handler (replace, destroy, keep). As well, it's highly recommended to use the name ID (mob_spawner) instead of numerical (52), because numerical IDs are being removed in the future. There was also a curly bracket that was both not needed and didn't have an appropriate ending bracket.
EDIT:
Your second command had 'EntityID' instead of 'EntityId'; the tags are all case-sensitive.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Wait... wha...fffffuuuuuuuu....
Yep.
Hard to believe I missed something so small.
Thanks much for the assist!
I'm trying to create a skelly spawner that has sword wielding skeletons.
Here's my current code:
/setblock ~ ~1 ~ mob_spawner 0 replace {EntityId:Skeleton,Equipment:[{id:267},{},{},{},{}]}
Just creates a regular skelly spawner... any ideas?
/setblock x y z mob_spawner 0 replace {EntityId:Skeleton,SpawnData: {Equipment:[{id:267},{},{},{},{}]}}
My game
ANDDDDDDDDDD,My game crashed
/setblock ~ ~1 ~ mob_spawner 0 replace {EntityId:Zombie,SpawnData:{Equipment:[{id:diamond_sword},{},{},{},{}]}}
some more mob spawner commands are
/setblock ~ ~1 ~ mob_spawner 0 replace {EntityId:Zombie,SpawnData:{Pos:[10.5,64.0,10.5],Equipment:[{id:diamond_sword},{},{},{},{}]},SpawnCount:2,SpawnRange:3,RequiredPlayerRange:3,Delay:3,MaxSpawnDelay:1,MinSpawnDelay:1,MaxNearbyEntities:2}
green: put in the coordinate of where you want the mob to spawn (has to have a decimal place)
blue: how much it will spawn at once
pink: how far it tests for other entities
Red: how close you have to be
Dark Blue: how fast it will spawn
)
if you have access to type commands you typically have access to /gamemode creative which means you can change any spawner to whatever you can summon via a spawn egg
/setblock ~ ~ ~ mob_spawner 0 replace
this sets the generic spawner .. now put a spawn egg (zombie for example) into your inventory and throw into the spawner .. now put a spawn egg of something else (cave spider for instance) and throw into the spawner .. whichever spawn egg you use becomes the spawner entity .. just something that seems to be a little known tidbit .. you can create a villager spawner or anything really
Affordable Minecraft Server Hosting
I was just doing some updates on my map Survival Island and i was messing around with custom spawners and i made this:
/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:Skeleton,SpawnData:{Equipment:[{id:diamond_sword},{id:iron_boots},{id:iron_leggings},{id:iron_chestplate},{id:iron_helmet}]},SpawnCount:2,SpawnRange:10,MinSpawnDelay:10,MaxSpawnDelay:60,MaxNearbyEntities:6,RequiredPlayerRange:15}
its a skeleton in full iron armor holding a diamond sword, Enjoy!
i would like to get this command as spawner
/summon Zombie ~33.347 ~91.73949 ~-357.794 {Equipment:[{id:diamond_sword,tag:{Unbreakable:1,ench:[{id:20,lvl:2},{id:19,lvl:2},{id:16,lvl:5},{id:17,lvl:5},{id:34,lvl:3}]}},{id:diamond_boots,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_leggings,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_chestplate,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_helmet,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}}],CustomName:Death Zombie,CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:100},{Name:generic.movementSpeed,Base:0.8},{Name:generic.attackDamage,Base:300}],ActiveEffects:[{Id:22,Amplifier:1,Duration:999999},{Id:5,Amplifier:1,Duration:999999},{Id:13,Amplifier:1,Duration:999999}],Silent:1,CanPickUpLoot:1}
phrase you could help me on this one.
/setblock ~ ~ ~ mob_spawner 0 replace {EntityId:Zombie,SpawnData: {Equipment:[{id:diamond_sword,tag:{Unbreakable:1,ench:[{id:20,lvl:2},{id:19,lvl:2},{id:16,lvl:5},{id:17,lvl:5},{id:34,lvl:3}]}},{id:diamond_boots,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_leggings,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_chestplate,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}},{id:diamond_helmet,tag:{Unbreakable:1,ench:[{id:0,lvl:3},{id:34,lvl:3}]}}],CustomName:Death Zombie,CustomNameVisible:1,Attributes:[{Name:generic.maxHealth,Base:100},{Name:generic.movementSpeed,Base:0.8},{Name:generic.attackDamage,Base:300}],ActiveEffects:[{Id:22,Amplifier:1,Duration:999999},{Id:5,Amplifier:1,Duration:999999},{Id:13,Amplifier:1,Duration:999999}],Silent:1,CanPickUpLoot:1}
i tryed :
To those who want to make their own instead of relying on a generator, according to the wiki, "EntityId" tag is deprecated in 1.9, therefore, the following command is tested and working:
Replace the (NAME) portion with the correct Chunk format for mobs linked on the wiki:
http://minecraft.gamepedia.com/Chunk_format#Mobs
If misspelled, you get either an empty block or a pig spawner. All other tags should work.
EDIT: Sorry for reviving the post from the shallow grave, but this was the first thing that popped up when googling how to do this so when I figured it out, I thought the best place was here.
Check me out on YouTube:
https://youtube.com/@Xenocorpse
that didn't work 4 me
Go
they tell you how to do it in 1.9 here
http://gaming.stackexchange.com/questions/259552/how-to-make-custom-spawners-in-1-9
In 1.10 the minecraft EntityId has changed to Spawndata
So the correct command should be
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:VillagerGolem}}
This is to setblock a iron golem spawner
In 1.10, the EntityId had changed to SpawnData, so the correct command should be
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:Zombie}}
Opps, I write the exact same thing as the previous comment