WorldNeeds devcommands
killenemies command
Syntax
What it does
Kills the hostile creatures near you, leaving tames alone. It's the safe pick during a raid on a base full of boars and wolves. Needs devcommands, and admin rights on a server.
Cheat commands need the console enabled with the -console launch option, then devcommands typed once. They work in singleplayer or when you host, not on dedicated servers.
Examples
Nearby hostile creatures die; tames survive
Related commands