Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

1

Add a possibility to execute a command targetting all mobs

1 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    If you're a Bedrock Edition player (which most of the members on this website seem to be), you can do this already with the family target selector argument. This means you can do this:

    /kill @e[family=!inanimate,type=!player]

    to target all non-player mobs.