Minecraft – Problem with execute command in minecraft

minecraft-commandsminecraft-java-edition

I am trying to run this command:

execute @a[score_hammer_min=1,score_shift_min=1,score_attack_min=1,rx=74,rxm=90] ~ ~ ~ /summon LightningBolt ~ ~ ~

I have tried changing the variables around and taking away the forward slashes or putting them in different places but it's still not working.

I was trying to get the player to summon a lighting bolt depending on their rotation and a few variables, but it just says invalid entity UUID format.

Does anyone know what's going on?

Best Answer

Try changing the scores's capitals; score_Hammer_min=1,score_Shift_min=1,score_Attack_min=1

And also are you sure you aren't in a team (/scoreboard teams) or created the right objectives?

Check for any grammar mistakes, your problem could be that.