This is the copy and paste page for my youtube tutorial. Check out that video if you want to know what to do with these commands!
Block Tower Set Up:

Copy and Paste:
Copy and Paste the following commands in chat:
/scoreboard objectives add Hearts dummy
/scoreboard objectives add Deaths deathCount
/scoreboard objectives add Kills playerKillCount
/scoreboard objectives add NewPlayer dummy
/scoreboard objectives add Health health
/scoreboard objectives add Health0 dummy
Copy and Paste the following commands in the corresponding blocks:
Block: Chain 1A:
/execute as @a[scores={Kills=1..,Hearts=..39}] run scoreboard players add @s Hearts 1
Block: Chain 1B:
/execute as @a[scores={Kills=1..,Hearts=..39}] run execute as @a[scores={Deaths=1..}] run scoreboard players remove @a[scores={Deaths=1..}] Hearts 1
Block: Chain 1C:
/execute as @a[scores={Kills=1..}] run scoreboard players remove @s Kills 1
Block: Chain 1D:
/execute as @a[scores={Deaths=1..}] run scoreboard players remove @s Deaths 1
Block: Chain 2A:
/execute as @a[scores={Health=0,Hearts=11..}] run scoreboard players set @s Health0 1
Block: Chain 2B:
/execute as @a[scores={Health0=1,Health=1..}] run effect give @s instant_health 2 100 true
Block: Chain 2C:
/execute as @a[scores={Health0=1,Health=1..}] run scoreboard players set @s Health0 0
Block: Chain 3A:
/execute as @a unless score @s NewPlayer matches 1 run scoreboard players set @s Hearts 10
Block: Chain 3B:
/execute as @a unless score @s NewPlayer matches 1 run scoreboard players set @s NewPlayer 1
Block: Chain 4A:
/execute as @a[scores={Hearts=0}] run gamemode spectator @s
Block: Single 1-40:
/execute as @a[scores={Hearts=X}] run attribute @s generic.max_health base set 2X
Note: For blocks Single 1 through Single 40, you'll need to replace X with with the block number, and 2X needs to be twice the score of X for that given block. See example bellow:
/execute as @a[scores={Hearts=1}] run attribute @s generic.max_health base set 2
/execute as @a[scores={Hearts=2}] run attribute @s generic.max_health base set 4
/execute as @a[scores={Hearts=3}] run attribute @s generic.max_health base set 6
Make sure to do this for each block. Try not to repeat or miss any blocks
Comments