I'm trying to make a map with a death-checker. I'm not a command pro, so I used MCStacker to generate a command. The below command is a function that I generated:
give @p chain_command_block{display:{Name:'{"text":"Consequence block","color":"blue","bold":true}'},Enchantments:[{}],BlockEntityTag:{Command:"execute if score @p Deaths matches 10 run title @p title {"text":"this is a test","color":"#6BFF93","bold":true}",auto:1b}} 1
This will give me a command block, which will check if I'm at 10 deaths and if so, will execute a title. But for some reason it doesn't work. Instead, the command generator wants me to make the code like this:
run title @p title {"}} 1
But if I do that, my command doesn't work anymore.
I've been stuck with it for a few hours now. How can I get this command to work? I'd prefer solutions that fix the issue in MCStacker so I can regenerate the command.