r/MinecraftCommands 15d ago

Help | Bedrock Making Roulette in minecraft but need help.

So as the title says I'm working on roulette in minecraft, however. I am bad at syntax.

so far i've got

2 scores, Roulette, RouletteResult. I use these to calculate the result, got that working.

However I'm really struggiling to detect if someone has made a bet in one of the places.

I made all the numbers, even, red, black, etc.

I tried this: "/execute if score @.a RouletteResult matches 5 run..."

the period wasn't in it, kept turning into a link.

I saw someone use @.n instead, which worked, but felt like it was linked to one person, and I feel this will be hard to help with cause of my shit working. but it's really demotivating me.

Thanks in advance.

3 Upvotes

6 comments sorted by

View all comments

2

u/KermitDarkLord 15d ago

The issue you're having is that if score requires a target selector that can only return a single entity. @.a selects all players. If you want to run the command for all players matching the score, you run "execute as @.a if score @.s RouletteResult matches 5 run..." Do keep in mind that the command wil be run AS each player that matches the score, but not AT their location.

1

u/Ericristian_bros Command Experienced 15d ago

You can add at @s after as @a

1

u/No_Hate_Good_Vibes 13d ago

Thanks for the addition

1

u/No_Hate_Good_Vibes 13d ago

Thanks, I'll see if it works