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:
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:
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.
Best Answer
The command to summon primed tnt in 1.12.2 is:
You could also add data tag
Fuse
to increase the fused time:Fuse specifies the number of ticks of delay before the explosion. In this case, 80 ticks would be about 4 seconds which is the default fuse time for tnt after striking it with flint and steel.
Edit: Response to the edited question. To my knowledge, there is no way to detect all gold blocks and replace them with tnt. @Fabian gave this answer to a similar question. It will only replace blocks around the executor and it will not be primed tnt as the replace option of the fill command does not have data tag argument.
You could add the execute command in a RepeatUnconditionalAlways Active command block to cause this to happen constantly. Either around yourself or all players if multiplayer. This would not be efficient and if executed for all players, would not allow players to place gold blocks. They would have a system to convert gold blocks into tnt. If you want to do this the command is: