advancement revoke @s only minecraft:suhc/eternal_torch
advancement grant @s[tag=!EternalTorchAdv] only minecraft:suhc/eternal_torch2
clear @s torch 1
execute as @s[tag=!EternalTorchAdv] run tellraw @a[tag=K] ["",{"selector":"@s","color":"white"},{"text":" has made the advancement ","color":"white"},{"text":"[","color":"gray"},{"text":"Protected by the Light","color":"gold","hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Protected by the Light\n","color":"gold"},{"text":"The Light protects your torches from the 'Darkness' event.","color":"yellow"}]}}},{"text":"]","color":"gray"},{"text":"."}]
recipe take @s minecraft:eternal_torch
tag @s[tag=!EternalTorchAdv] add EternalTorchAdv
#give @s emerald 1