We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

6

Mob category for "type":target selector argument

1 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    I think that what you have asked for in your post is possible already through different methods depending on which Minecraft Edition you are playing on:

    Bedrock Edition

    This is possible using the target selector argument family. This will select targets that are part of a specific entity family, defined in a behaviour pack. Many families exist for different types of mobs. Try stuff like inanimate, undead, and see what happens! For a complete list of all possible values, download the default behaviour pack.

    Example usage:

    @e[family=undead]

    Java Edition

    Java Edition of Minecraft uses data pack tags to get this done. Data pack tags are a listing of types that group entities, blocks, items, even functions! You can set up your own to choose which entity types are part of your tag, then apply it.

    Then, when you want to use it, do something like this:

    @e[type=#namespace:tag]