Creating a minecart spawner that had blocks riding them

Creating a minecart spawner that had blocks riding them - A Boy Riding on a Penny Board

I know how in 1.7 you can summon a minecart that has a block "riding" it, as in you can change the block's height above it, what block it is, etc.

I also know how to make a minecart spawner.

How can i combine the two in order to create a minecart spawner with a block riding on the spawned carts?

I saw this on a server, it's a teleportation room and when you hit the button it puts a spawner below you, and you see this block whirl around you. Any ideas? This may also be part of a plugin, idk



Best Answer

You can create a minecart spawner with custom datatags with the following command:

/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {EntityId:MinecartRideable,SpawnData:{CustomDisplayTile:1,DisplayTile:1,DisplayData:0},SpawnPotentials:[{Type:MinecartRideable,Weight:1,Properties:{CustomDisplayTile:1,DisplayTile:1,DisplayData:0}}],SpawnCount:2}

The SpawnData and SpawnPotentials's Properties must contain the same tags in order for the spawner to continue spawning. SpawnData isn't really required as it will be overriden by SpawnPotentials after the first spawn, but I included it so the spawner would show the correct entity when created.

I'm not sure whether or not you use Block id's or names in 1.7, so you'll have to experiment with the DisplayTile yourself




Pictures about "Creating a minecart spawner that had blocks riding them"

Creating a minecart spawner that had blocks riding them - Woman Creating Hairstyle for Girl
Creating a minecart spawner that had blocks riding them - Free stock photo of action, active, amazing
Creating a minecart spawner that had blocks riding them - Free stock photo of adult, arab, arabian



Can you put spawners in Minecarts?

Minecart with spawners can now be summoned using the /summon command. The entity ID for minecarts with spawners has now been changed from MinecartSpawner to spawner_minecart . The texture of minecarts with spawners has now been changed. The spawner now appears dark and sometimes opaque, same as suffocating mobs.

How do you make a minecart spawner?

The spawner will only spawn mobs if a player is within 16 blocks of it.



Minecraft: Slime Block Minecart Jump!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: cottonbro, Karolina Grabowska, Tima Miroshnichenko, Mikhail Nilov