Minecraft wiki entry for Command_blocks_and_functions, associated text: This code will create a zombie spawner 2 blocks from you in the x direction. Note that the name given for mob spawners in this code (minecraft:spawner) is the long version and you can leave out the minecraft: part.