I know there is some way to use monster spawners another way than to use them in their natural location...I just don't know how. Especially in normal Minecraft. There has to be some command you can use.
2 Answers
There's this really useful tool on minecraft.tools that allows you to do this.
Go to , then click on the large "Create a MobSpawner" button. Fill in all the necessary inputs, and click "Generate the Command". This will generate a command that will place down a mob spawner.
1The wiki has a list of NBT data for spawners here:
And a list all entity data here:
The /setblock command can create a physical block in the world, adding necessary data to tile entities:
/setblock X Y Z <block ID> [Damage] [replacement method] {dataTags} An example, where a creeper will spawn with a fuse timer of 1 tick. Any data not specified for the spawner will use the defaults.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:"Creeper",SpawnData:{Fuse:1s}} The /give command can create a mob spawner for inventories. The BlockEntityTag tag for the item format will hold potential tile data for the block when it is placed.
/give <player> <item ID> [Count] [Damage] {dataTags} /give @p minecraft:mob_spawner 1 0 {BlockEntityTag:{EntityId:"Creeper",SpawnData:{Fuse:1s}}} 2