How to run a redstone signal if a scoreboard is a certain amount

Here's what I'm trying to do, I have a scoreboard that's called Deaths, I want to run a command if it gets to 5, how can I do this?


Solution 1:

Have a repeating command block running the below command into a conditional chain block which starts your logic when deaths reaches 5.

/scoreboard players test @a Deaths 5 

If you need to create a redstone signal you can /setblock x y z redstone_block from the next command block in the chain.