Minecart with Monster Spawner

| Health points |
6HP |
|---|---|
| Hitbox size |
Height: 0.7 blocks |
{
"title": "Minecart with Monster Spawner",
"rows": [
{
"field": "6<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"3 hearts\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=♥)(link to File:Heart (icon).png article, displayed as 9px|link=|alt=♥)(link to File:Heart (icon).png article, displayed as 9px|link=|alt=♥)</span></span>",
"label": "(link to Health article, displayed as Health points)"
},
{
"field": "Height: 0.7 blocks<br>Width: 0.98 blocks",
"label": "(link to Hitbox article, displayed as Hitbox size)"
}
],
"invimages": [],
"images": [
"Minecart with Spawner.png"
]
}
The minecart with monster spawner is a combination of a minecart and a monster spawner.
Obtaining
Minecarts with monster spawner cannot be obtained as an item in the inventory, and can only be produced using the /summon command or by using external tools.
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.[1]
More precisely, a minecart with monster spawner acts as a monster spawner block at the minecart's position. In other words, if the minecart with monster spawner 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 minecart with monster spawner's new position.
Minecarts with monster spawner were used in some custom maps as a way to have redstone controlled monster spawners, however after the addition of the /summon and /setblock commands they were mostly rendered obsolete and are very rarely used today.
Drops
When they are broken, minecarts with monster spawners drop 1
minecart. The monster spawner does not drop.
Sounds
Minecarts with monster spawners use the Friendly Creatures sound category for entity-dependent sound events.[sound 1]
| Sounds | ||||||||
|---|---|---|---|---|---|---|---|---|
| Sound | Subtitles | Source | Description | Resource location | Translation key | Volume | Pitch | Attenuation distance |
| Minecart rolls | Friendly Mobs [sound 1] | While a minecart with monster spawner is moving | entity | subtitles | 0.0-0.35 [sound 2] | 0.0-1.0 [sound 3] | 16 | |
Data values
ID
| Entity | Identifier | Translation key |
|---|---|---|
spawner_minecart | entity |
Entity data
Minecarts with monster spawners have entity data associated with them that contain various properties of the entity.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [Short] Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and
SpawnDataas though it had just completed a successful spawn cycle, immediately when a player enters its range. Setting this to -1 can be useful if the player wants the game to properly randomize the spawner'sDelayandSpawnData, rather than starting with pre-defined values. - [Short] MaxNearbyEntities: Overrides the maximum number of nearby (within a box of
SpawnRange*2+1 ×SpawnRange*2+1 × 8 centered around the spawner block) entities whose IDs match this spawner's entity ID. This is relative to a mob's hitbox, not its physical position. Also, all entities within all chunk sections (16×16×16 cubes) overlapped by this box are tested for their ID and hitbox overlap, rather than just entities within the box, meaning that a large amount of entities outside the box (or within it, of course) can cause substantial lag. - [Short] MaxSpawnDelay: The maximum random delay for the next spawn delay. Requires the
MinSpawnDelayandSpawnCountproperties to also be set. - [Short] MinSpawnDelay: The minimum random delay for the next spawn delay. May be equal to
MaxSpawnDelay. Requires theSpawnCountproperty to also be set, otherwise it defaults to 0. - [Short] RequiredPlayerRange: Overrides the block radius of the sphere of activation by players for this spawner. For every gametick, a spawner checks all players in the current world to test whether a player is within this sphere. Requires the
MaxNearbyEntitiesproperty to also be set. - [Short] SpawnCount: How many mobs to attempt to spawn each time. Requires the
MinSpawnDelayproperty to also be set. - [NBT Compound / JSON Object] SpawnData: Contains tags to copy to the next spawned entity(s) after spawning. Any of the entity or mob tags may be used. If a spawner specifies any of these tags, almost all variable data such as mob equipment, villager profession, sheep wool color, etc., are not automatically generated, and must also be manually specified (that this does not apply to position data, which are randomized as normal unless Pos is specified. Similarly, unless Size and Health are specified for a Slime or Magma Cube, these are still randomized). This also determines the appearance of the miniature entity spinning in the spawner cage. Warning: If
SpawnPotentialsexists, this tag gets overwritten after the next spawning attempt: see above for more details. - [NBT List / JSON Array] SpawnPotentials: Optional. List of possible entities to spawn. If this tag does not exist, but
SpawnDataexists, Minecraft generates it the next time the spawner tries to spawn an entity. The generated list contains a single entry derived from theSpawnDatatag.- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn, overwriting
SpawnData.- [Int] weight: The chance that this spawn gets picked in comparison to other spawn weights. Must be positive and at least 1.
- [NBT Compound / JSON Object] data
- Spawn Data see Template:Nbt inherit/spawn data/template
- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn, overwriting
- [Short] SpawnRange: The radius around which the spawner attempts to place mobs randomly. The spawn area is square, includes the block the spawner is in, and is centered around the spawner's x,z coordinates - not the spawner itself. It is 2 blocks high, centered around the spawner's y coordinate (its bottom), allowing mobs to spawn as high as its top surface and as low as 1 block below its bottom surface. Vertical spawn coordinates are integers, while horizontal coordinates are floating point and weighted toward values near the spawner itself. Default value is 4.
- [Short] Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| January 07, 2013 | Nathan Adams tweets an image of a monster spawner inside a minecart, spawning pigs throughout a village. | ||||||
| Later that day, Adams tweets an image of minecarts with spawners riding along a complex railway.[2] | |||||||
| February 06, 2013 | Adams tweets another image of minecart pig spawners. | ||||||
| 1.5 | 13w06a | ||||||
| Placing any type of minecart creates a minecart with a pig spawner. | |||||||
| 13w06a (reupload) | Placing any type of minecart no longer creates a minecart with spawner. | ||||||
| 1.7.2 | 13w36a | Minecart with spawners can now be summoned using the /summon command. | |||||
| 1.14 | 18w43a | ||||||
| 1.15 | 19w38a | ||||||
| 19w39a | The spawner texture is now colored correctly. | ||||||
| 1.19.3 | 22w44a | "Minecart with Spawner" has been renamed to "Minecart with Monster Spawner". | |||||
| Minecart with monster spawners no longer have a pig in them and flame particles by default. | |||||||
| 1.20.3 | 23w45a | ||||||
| 1.20.5 | 24w13a | Minecart with monster spawners can now specify a loot table to use for equipment of spawned mobs. | |||||
Data history
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.11 | 16w32a | The entity ID for minecarts with spawners has now been changed from MinecartSpawner to spawner_minecart. | |||||
| 1.13 | 17w47a | Numeric IDs for entities were presumably deprecated in this version. | |||||
Issues
Issues relating to "Minecart with Monster Spawner", "Minecart with Spawner", or "Spawner Minecart" are maintained on the bug tracker. Issues should be reported and viewed there.
Gallery
-
The first image of minecarts with monster spawners released by Dinnerbone. -
The second image released by Dinnerbone. -
Zoomed image of the second release. -
Another image posted by Dinnerbone. -
A minecart with monster spawner spawned using/summon. -
A minecart with monster spawner spawning pigs.
References
| Items |
| ||||
|---|---|---|---|---|---|
| Blocks |
| ||||
| Entities |
| ||||
| Biomes |
| ||||
| Effects |
| ||||