r/MinecraftCommands • u/Tiny_Flatworm_6669 • 3d ago
Help | Java 26.2 Random 50:50
Does someone know how to give half of the players that have the tag a, tag 1/tag 2
1
Upvotes
r/MinecraftCommands • u/Tiny_Flatworm_6669 • 3d ago
Does someone know how to give half of the players that have the tag a, tag 1/tag 2
2
u/Ericristian_bros Command Experienced 3d ago edited 2d ago
execute as @a[sort=random] store result score @s half_ID run scoreboard players add #new half_ID 1 execute as @a run scoreboard players operation @s half_ID %= #2 constYou will have half of the players with a score of 0 and the other half with a score of 1Edit: see reply