How to find entities not being ridden

How to find entities not being ridden - Low Angle View of Man Standing at Night

So I tried this:

/kill @e[type=ArmorStand,Passengers:[]]

It doesn't do anything. Am I doing this right?



Best Answer

As of Minecraft 1.13, target selectors do support NBT data, meaning that your command, after correcting a few syntax errors and updating it to the new version, would work:

/kill @e[type=armor_stand,nbt={Passengers:[]}]



Pictures about "How to find entities not being ridden"

How to find entities not being ridden - Top view of magnifying glass and cellphone with compass with coordinates placed on paper maps on beige background in light room
How to find entities not being ridden - Crop man with map in automobile
How to find entities not being ridden - From below of diverse lost travelers with backpacks exploring woodland and searching way in cellphone





6 Ways to Get Rid of a Negative Spirit or Entity That Has Attached Itself to You




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

Images: Lennart Wittstock, Monstera, Dziana Hasanbekava, Kamaji Ogino