Can you use the /spreadplayers command with armor stands?

Can you use the /spreadplayers command with armor stands? - From below of ethnic boy in hoodie controlling robot using panel while standing in light room

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?"

Can you use the /spreadplayers command with armor stands? - Crop hacker silhouette typing on computer keyboard while hacking system
Can you use the /spreadplayers command with armor stands? - Woman in Black and White Coat Standing Beside Man Sitting Using Laptop
Can you use the /spreadplayers command with armor stands? - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk



How do you use armor stands with commands?

The commands are as follows:
  • /data merge entity @e[type=armor_stand,sort=nearest,limit=1] {ShowArms:1} , which will change the nearest armor stand into an armor stand with arms.
  • /summon minecraft:armor_stand ~ ~ ~ {ShowArms:1} , which will summon a new armor stand with arms shown.




  • 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