0

I am trying to spawn in a spawner that spawns iron golems. I have tried and failed at changing the commands from previous versions to 1.13 because of the slight syntax change.

I tried to use the 1.10 command:

setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"VillagerGolem"}} 

I tried:

setblock ~ ~1 ~ minecraft:mob_spawner{SpawnData:{id:"VillagerGolem"}} replace 

in 1.13

but that crashed the game.

8
  • 1
    It would help us answer if you edit your question with the commands you've tried. It's easier to fix a command when someone can see what exactly is wrong.
    – Virusbomb
    Mar 28 '18 at 13:28
  • What error message do you get? What part do you have problems with? Have you tried this page? Mar 28 '18 at 14:00
  • For example, I tried to use the 1.10 command Mar 28 '18 at 14:12
  • setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"VillagerGolem"}} Mar 28 '18 at 14:12
  • which is setblock ~ ~1 ~ minecraft:mob_spawner{SpawnData:{id:"VillagerGolem"}} replace in 1.13 Mar 28 '18 at 14:13
3

You were very close. You had the entity ID wrong. The entity ID for the golem is villager_golem. Capitalization and the underscore matter.

This command functions properly:

/setblock ~ ~1 ~ minecraft:mob_spawner{SpawnData:{id:"minecraft:villager_golem"}} replace
3

The above answer may have been right at that time, however, now in 1.13.2 the command for this is as follows:

/setblock ~ ~1 ~ minecraft:spawner{SpawnData:{id:"minecraft:iron_golem"}} replace

-1

Unfortunately, on the current Minecraft version 1.13.2, Microsoft has changed a few entity IDs. So now this command looks like this:

/setblock ~ ~1 ~ minecraft:spawner{SpawnData:{id:"minecraft:iron_golem"}} replace

1
  • 2
    How is this answer any different than @Jim's answer?
    – John
    Apr 15 '19 at 18:15

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