Command Block Works then Stops Working [closed]

Solution 1:

The command that you linked is for a different version of Minecraft. Since commands can change between versions, that command will not work anymore. I would recommend finding a new command for your version. It is possible to reword the command, but it would require a lot of work.