Monster Spawner
A monster spawner is a type of spawner found in a variety of structures. It constantly summons instances of the mob displayed within it as long as a player is in range and the light levels are correct for that mob type to spawn nearby. It only drops experience orbs when broken, and cannot be moved from where it is found.
Monster spawners cannot be obtained in Survival, even with Silk Touch.
A monster spawner can be obtained in Creative mode by taking it from Creative inventory, by using the /give command, or by using pick block. It is initially empty and inert, but can be configured to spawn a desired mob by using a spawn egg on the placed block.
Complete article available
This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.