I have just recently started learning how to use command blocks and I have began learning scoreboards. I have a scoreboard setup which tracks my mob kills. I am trying to make it so that when the value reaches 10, the command block says hi. The command I have in right now is execute if entity @p[scores={totalKills=10..}] at @p run say hi
.
When my score is already 10, it triggers the say hi
, but when I set it back to 9 and kill a mob to move it up to 10, it doesn't trigger the say hi
. It will also pop up if I switch the command block between Needs Redstone and Always Active or if I have it on Needs Redstone and turn it on and off.
What exactly am I doing wrong?