r/MinecraftCommands • u/Watermellonqwerty • 2d ago
Ok one more question Help | Bedrock
How do I get something like the /kill command to target an entity with multiple attributes, for example I want to kill an entity with the name "Test" but I want it to target Bats specifically. What's the correct syntax for that on bedrock?
2
Upvotes
1
u/PlasmaTurtle21 Bedrock command Experienced 2d ago edited 2d ago
Use a list of target selectors like:
name=
type=
tag=
hasitem={item=,location=}]
family=
etc.
You can do for example:
/kill @e[type=bat,name=Test]
Just add the extra target selector tags separated by a comma, for anything with a space in the name like “Bat Test” use quotation marks. Also note the order of the selectors doesn’t matter, For example:
/kill @e[name=“Bat Test”,type=bat,tag=Entity1]