Can you use the /spreadplayers command with armor stands?

I've been trying to make a bomb using commands.
When the player uses the spawn egg I want it to summon like 10-20 invisible armor stands, then use /spreadplayers
to spread them above ground and underground at a 10 block radius from the player. Afterwards, TNT is summoned at the armor stands and that makes the explosion. After that the armor stands are killed.
The problem is, I don't know if the /spreadplayers
command even works with armor stands.
Best Answer
Yes, it turns out that you can use /spreadplayers
with entities. This:
/spreadplayers 30 30 10 30 false @e[type=!Player]
Will spread any non-player entities. Using @e[type=ArmorStand]
in that command instead will limit it to just your armour stands.
Pictures about "Can you use the /spreadplayers command with armor stands?"



How do you use armor stands with commands?
The commands are as follows:How to Use the /spreadplayers Command - Minecraft Tutorial
More answers regarding can you use the /spreadplayers command with armor stands?
Answer 2
/spreadplayers ~1 ~1 10 30 false @e[type=ArmorStand]
Answer 3
/spreadplayers ~1 ~1 10 11 @e[type=Armor_Stand]
This answer updated for user112256 but now in 1.12.x, ArmorStand is now armor_stand.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vanessa Loring, Anete Lusina, Tima Miroshnichenko, Sora Shimazaki