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.
Best Answer
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: