Can you build it differently mc?

Ti
2
Can you build it differently mc

Hello, I'm trying to close a money system with the scoreboard in Minecraft.

The first command block contains the following command: / clear @p minecraft: player_head 1

the playerhead is said to be the currency

the second command block contains the command: / scoreboard players add @p toiletpaper 1

the toiletpaper is our currency. How can I do it now that the cmd 1 has been successfully activated now activates the cmd 2? I did it with a comparator, but it remains active when cmd1 is activated.

ca

I think if you connect them in chain (setting in the command blocks) it should work, then it is also without delay, just have to be the right version:-)

Qu

You have to change the 2nd command to "chain" and set it as "conditional". Redstone should also be on and as soon as the 1st is successful, the 2nd will also be executed.