Author Topic: Kill entities in server  (Read 13971 times)

crazy

  • Administrator
  • Sr. Member
  • *******
  • Posts: 403
  • Karma: +6/-0
    • View Profile
    • STIPE website (This one!)
Kill entities in server
« on: 19 July 2021, 08:49:11 »
Did you accidently spawn a million cats? Farm out of control and now need to clean it up?
Sometimes you need to remove a large amount of entities which have taken over your world. Removing one by one can be difficult so here are commands you can type in-game (as an op) or in the console of the control panel


For Minecraft 1.13 or greater (1.14, 1.15, 1.16, 1.17, 1.18)

Kill all sheep:
Code: [Select]
/kill @e[type=sheep]
Kill all cows:
Code: [Select]
/kill @e[type=cow]
Kill everything but players:
Code: [Select]
/kill @e[type=!player]
Kill everything but players and items (like armor stands)
Code: [Select]
/kill @e[type=!player,type=!item]
Kill everything but players, items, and villagers
Code: [Select]
/kill @e[type=!player,type=!item,type=!villager]
 
NOTE: If you are typing the above in the console, type it without the / in the start