Minecraft – Problems with an execute command

minecraft-commandsminecraft-java-edition

I have this command but I need to add/set a score instead of summoning a sheep:

/execute @a[score_talkVill_min=1,score_hold_min=1] ~ ~ ~ summon Sheep

Best Answer

all you need is to replace the summon command with something like this:

/scoreboard players add <player> <objective> <amount>

that should work, but I can't test it right now, so if it doesn't work, that's probably why

hopefully I helped!