I just saw minecraft! Can add to commands. E.g. / kill @e [type =! Player]
What does the exclamation mark bring here?
Eg / Kill @e [type = pig]
A "!" before a value denies this value:
@a [gamemode = creative]
All players in creative mode.
@a [gamemode =! Creative, gamemode =! Spectator]
All players who are not in creative mode and spectator mode.
"! Player" means "not player"
In many programming languages, "!" = "not".
In your case:
Every creature except the player himself is killed.
For example, you can do: / kill @e [type =! Minecraft: chicken, type =! Minecraft: falling_block, limit = 10, distance = 10.20]
This command kills up to a maximum of 10 objects in a radius between 10 and 20 blocks, but only chickens and falling blocks, such as sand, gravel, anvil, etc.