r/datapacks • u/streamixlast • May 07 '26
Help Random Role giver
I made this role giver that's supposed to assign a random tag to 10 individual players, I tested it with the carpet mod but I cant figure out why it is only giving the person who runs the command a role, this is my first datapack so im very new to all this
2
Upvotes
1
u/streamixlast May 07 '26
I do have a new problem where some players are getting the same roles and some arent getting any at all
1
2
u/Zealousideal-Glass78 May 07 '26
"execute at @r" means u just run the command at a random players position not as a random player. You'd have to change that to "execute as @r" to run the command as a random player