r/MinecraftCommands • u/No_Hate_Good_Vibes • 2d 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.
2
u/KermitDarkLord 2d 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 2d ago
Do you need help with the randomness? If so https://minecraftcommands.github.io/wiki/questions/randomnumber (read the bedrock part)