Quantcast
Channel: User Skylinerw - Arqade
Viewing all articles
Browse latest Browse all 49

How can I target a random entity of any type using @r?

$
0
0

While @r alone can only target player entities, adding the type parameter allows it to target other entity types:

/say @r[type=ArmorStand]

But because of this requirement, you'd only be able to target all except for a specific entity:

/say @r[type=!Player]

Attempting to use an invalid ID will throw an error, stating "Entity type [name] is invalid", rather than targeting all except that invalid type.

/say @r[type=!InvalidID]

How would I cause @r to target all possible entities without excluding any?


Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>