mojira.dev
MC-78691

Commands using @e will include entities in other dimensions

When using the /kill command in The End and The Nether, it will kill mobs that are in the overworld.

To Reproduce:
Go into the end or the nether and type the command:
/kill @e[type=!Player]

The pictures show that the things killed are items and mobs that are found in the overworld. When returning to the overworld, everything is killed.

Linked issues

Attachments

Comments 3

It kills entities on the entire world. This is intended.

By the way, you can use the "Dimension" tag to test for the dimension an entity is in.

I just wanna kill all nether mobs and end mobs with the command, and im scared it will kill overworld entities too.

SamTheSheep

(Unassigned)

Unconfirmed

Minecraft 1.8.3

Retrieved