So while making a minigame I thought of an idea that could be useful to compact some redstone circuitry. It's nothing really big. But I thought it was a good idea. The idea is: The specific player selector! (@s)
It would be a new selector that you can use in command blocks called @s. Say you wanted to give multiple specific people an item. Well, maybe you don't want to have to lay down multiple command blocks. Or maybe some other reason. Then just use @s! Here's an example:
/give @s[name=AJPirate,jeb_,Notch] diamond
Let's run down this command:
/give: Well, umm. We all know what this does, right? It gives a player a certain item.
@s: The new selector! It lets you select specific players!
[name=AJPirate,jeb_,Notch]: This is a parameter for the @s. What it does is let you select multiple players. This is just an example and could be changed.
diamond: Well, this just says that we're giving AJPirate, Jeb and Notch all diamonds.
You could put pretty much any other parameter on @s as well. For example, if you wanted to testfor certain players, this could really compact it:
Let's run down this one real quick:
/testfor: Tests for players.
@s: The new selector! I already explained this one.
[name=AJPirate,jeb_,Notch]: This means that we're testing for AJPirate, Jeb and Notch; if they're all not on - the command will not send a comparator output or whatever.
So, I hope you like my idea! Tell me what you think in the comments!
Rollback Post to RevisionRollBack
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
I can definitely see this being useful, but I think the command would make more sense as this
/give @s[Name1, Name2, Name3]
Thanks for your support! And the reason I don't really like the syntax you have written is because I think it would be cool to have different parameters on the @s. With the way I've written you would be able to do things like: