How can I e.g. Kill monsters?

ba
4

I'm currently building a version 1.15 Vanilla Minecraft and I just want to die there e.g. Monsters.

an

Just like yours, just stop / kill @e [type = zombie, …] and "type = Spider" and "type = Skeleton" instead of / kill @a […]

ba

Ok thanks, but how is it that who monsters enter a certain area that they are killed dan?

an

I just said so.

As in the previous question, just stop @e [type = zombie,…] instead of @a […]

Simply replace the "…" with what I told you in the previous question.

ba

Thank you