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

3

Kill/teleport nearest entity of type...

2 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    if it only kills one thing, then you can just break it

  • 1
    Registered User commented
    Comment actions Permalink

    Command isnt that complicated. Just use:

    /kill @e[type=(whatever type the mob should be), limit=1, sort=nearest]

    limit can be higher than one, in this case, the e.g. 3 nearest mobs are targeted.