Minecraft – How to you get charged creeper spawners without any external programmes

minecraft-java-edition

I have been searching everywhere (mainly on youtube) for ages, but I cannot find any tutorials on how to get charged creeper spawners without either MCEdit or NBTEdit. Is there a way to get charged creeper spawners without the use of external programs?

Best Answer

Assuming you're on creative with cheats enabled and on version 1.7, you should be able to place down a command block and insert this command into it:

/setblock ~ ~ ~ mob_spawner 0 replace {EntityId:Creeper,SpawnData:{powered:1}}

Then power with any redstone device, and the command block should turn into a charged creeper spawner.