I'm setting up a loop that turns players into a certain block, but I only want certain people to be changed. Can anyone help?
Minecraft – way to make something happen only to players with a certain value
minecraft-java-edition
Related Topic
- Minecraft – /execute a command at players with a certain score
- Minecraft – How to give theself an item that can only be placed on a block with a certain damage value
- Minecraft – How to make the /fill command add blocks, but only on top of certain blocks
- Minecraft – way to make it so the /clear command takes a certain amount of items with a strict amount
- Minecraft – How to give a player an item if their level is of a certain minimum value, and make sure that they only have one of these items at a time
- Minecraft – How to summon something at all entities with a certain scoreboard value
Best Answer
To select players with a certain scoreboard value, use the
score_[SCORENAME]=[MAX]
andscore_[SCORENAME]_min=[MIN]
arguments in your entity selector. For example, to select people with aTurnToBlock
score of at least 1:You can use this in a command:
If by "certain value" you don't mean score values, then the wiki has a full list of other arguments can select players by:
You can use these in the same way as above. For example, to only select players in creative: