Minecart with Monster Spawner

Minecarts with monster spawners are a combination of both minecarts and monster spawner.

Obtaining
Minecarts with monster spawners cannot be obtained as an item in the inventory, and can only be produced using the command.

Usage
The monster spawner within behaves the same way as normal monster spawners; but the entity to be spawned cannot be set via using spawn eggs; the monster spawner's data can only be modified using commands or NBT edits. It has the same associated NBT tags as a normal monster spawner.

More precisely, a spawner minecart acts as a monster spawner block at the minecart's position. In other words, if the spawner minecart moved within a block position, the range of spawn would not change, but if it moved 5 blocks east, the range of spawn would now be centered at the spawner minecart's new position.

Drops
When they are broken, spawner minecarts drop 1. The spawner will not drop.

Sounds
Minecarts with monster spawners use the Friendly Creatures sound category for entity-dependent sound events.



Entity data
Minecarts with monster spawners have entity data associated with them that contain various properties of the entity.