Have you ever tried to match someones scores, name etc. with others?
Its possible, but they are hard to do, sometimes we have big execute commands to do complex things, selectors in selector arguments would help us alot
This command will kill everyone but not you:
kill @a[name=!{@s}]
selectors in selector arguments are always in {} brackets
---------------------------------------------------------------------------
This command will simulate a conversation between two guys
say @p[scores={pigsKilled={@s}] I killed as many pigs as you :P
"For now we use this /execute at @s as @a if score @s pigsKilled = @p[distance=..0.01] pigsKilled at @s as @a if score @s pigsKilled = @p[distance=..0.01] pigsKilled run say @p[distance=..0.01] i killed as many pigs as you"
---------------------------------------------------------------------------
This command will tp all your team to you
tp @a[team={@s}] @s
---------------------------------------------------------------------------
Selectors can be placed inside
- scores={objective={}}
- team={}
- name={}
- type={}
- level={}
- x, y, z={}
- dx, dy, dz={}
- x_rotation, y_rotation={}
This would make our lifes as mapmakers and command blockers so much easier T.T
Please sign in to leave a comment.
1 Comments