Actually, we can detect if 2 entities have the same value for a score but we can't execute them.
That's why we need a way to execute entities with the same score.
execute as @e[type=armor_stand,tag=speed] run kill @e[scores={speed={"selector":"@s"}}]
will kill every entities that have the same score of speed than an armor stand with a "speed" tag.
I know you can do that with a function loop but it is, well, a loop so a single command is more efficient, especially if there is a lot of entities and you need other loops in the same function.
5 Comments
Please sign in to leave a comment.
Post a new comment: