Minecraft – How to make a Potion Spawner in 1.12.2

minecraft-commandsminecraft-java-edition

I am making a map but there's a problem, how to make a Potion Spawner in Minecraft 1.12.2?

I am trying to make a command :

/setblock ~0 ~1 ~0 mob_spawner 0 replace {SpawnData:{CustomPotionEffect:"Jump_boost",Amplifier:1,Second:10,id:Potion},SpawnCount:5,SpawnRange:3,maxNearbyEntities:3,Delay:15s,MinSpawnDelay:15s,MaxSpawnDelay:15s}

It works but the spawner doesn't spawn anything. If you know how to do this, please tell me how to type that command.

Best Answer

Maybe this can help you

/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnCount:1,SpawnRange:5,RequiredPlayerRange:5,MaxNearbyEntities:25,Delay:50,MinSpawnDelay:25,MaxSpawnDelay:50,SpawnData:{id:"minecraft:Item",Item:{id:bone,Count:10}}}

This command will spawn a mobspawner that spawns bone. The website that i used was THIS one