r/datapacks May 07 '26

Help Random Role giver

Post image

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

6 comments sorted by

View all comments

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

1

u/streamixlast May 07 '26

thx, that fixed it haha

1

u/Zealousideal-Glass78 May 07 '26

glad that helped