mojira.dev
MCPE-55817

@e can affect players also..

So I was working on a few command blocks in my survival/faction realm. I didn't want players to get annoyed by the mobs in the hub so I did what almost every faction maker did. I placed down a repeating, always active command block and typed in a command involving "@e". (/kill @e[r=140]) Then players started telling me that they were repeatedly getting killed at the hub. Then I tested it out it adventure mode and as soon as I pressed enter it would start killing me in a radius of 140 blocks even though I used "@e" instead of "@p". So, yeah just wanted to point it out there. It's probably just a bug in the 1.13.0 update, but anyway hope you can fix this. Thanks!

Comments 8

The @e command affects all entities, including players, so this is not a bug.

try typing ''/kill @e[type=mob name here]'' with the brackets

The @e command affects all entities, including players, so this is not a bug.

try typing ''/kill @e[type=mob name here]'' with the brackets

But what if I wanted to kill multiple mobs??

But what if I wanted to kill multiple mobs??

If there are many different mobs, you will need to place several command blocks with the name of the mobs you want to kill.

If there are many different mobs, you will need to place several command blocks with the name of the mobs you want to kill.

like for example a zombie pigman
/kill @e[type=zombie_pigman]

like for example a zombie pigman
/kill @e[type=zombie_pigman]

Mario

(Unassigned)

Unconfirmed

Windows

Windows 10

1.13.0

Retrieved