Minecraft – Trail of particles from a point to TNT

minecraft-commandsminecraft-java-edition

I have a map where I spawn Primed TNT then teleport it to a random Mushroom Cow which is invisible to make 100% random explosion. Now I want to make a particle trail from an orb kind of block in the center of the map to the exploding Mooshroom to simulate some kind of rocket.

I would like to use the particles from burning torches. Is this possible?

edit: I know how to summon entities but I don't know how to summon particles

edit 2: I was thinking about using a zombie for villager tracking. If there is a way to send a zombie through the air then it would be possible by villager tracking. The only problem would be to generate the zombie and make him walk to the villager within 2 ticks (The time used to summon the TNT and teleport it to the mushroom or in this case the villager)

Best Answer

When you want to start the trail of particles, use this command, with X, Y and Z being the coordinates of the center:

/summon ArmorStand X Y Z {Invisible:1,CustomName:"orb"}

Run these commands, in order, on a repeating/chain command block loop like the depicted:

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~1 ~ ~ {Invisible:1}

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~-1 ~ ~ {Invisible:1}  

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~ ~1 ~ {Invisible:1} 

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~ ~-1 ~ {Invisible:1}

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~ ~ ~1 {Invisible:1}

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ summon ArmorStand ~ ~ ~-1 {Invisible:1}

/kill @e[type=ArmorStand,name=orb]

/execute @e[type=MushroomCow,name=Mushy,c=1] ~ ~ ~ entitydata @e[type=ArmorStand,c=1] {CustomName:"orb"}

/kill @e[type=ArmorStand,name=!orb]

/execute @e[type=ArmorStand,name=orb] ~ ~ ~ /particle cloud ~ ~ ~ 0 0 0 0.02 3

/execute @e[type=MushroomCow,name=Mushy,c=1] ~ ~ ~ kill @e[type=ArmorStand,r=1]

A screenshot:

Repeating command blocks

It has been brought to my attention that this method is rather slow. A way to speed it up is simply to make another set of command blocks as below:

More repeating command blocks

I have tested both the functionality and the speedup method and they seem to work. However, if you try it and find a problem, please tell me and I will look into it.