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

4

A new target selector for selecting a single entity

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    @c should allow all @e-compatible delimiters. Then you could do "/kill @c[type=zombie, sort=random]" to kill one random zombie in the world. Default to [limit=1, sort=nearest].

  • 1
    Registered User commented
    Comment actions Permalink

    While I do agree that @c would be convenient, it's pretty easy to do @e[type=zombie,limit=1] which already achieves exactly what you're suggesting.

  • 0
    Registered User commented
    Comment actions Permalink

    If you just wanted mobs in a certain range just do /execute @s /kill @e [type:zombie,r:15] on a command block with repeat on and always active on, which would kill all zombies which are 15 blocks around you.