$tellraw @s [{"bold":false,"color":"white","text":"You've got "},{"bold":true,"color":"$(color)","text":"[$(name)]"},{"bold":false,"color":"white","text":"!"}]
$clear @s coal[custom_data={artifact:$(score)}] 1
$scoreboard players add .$(score) artifact 1
$scoreboard players add .$(set) artifact_set 1

$advancement revoke @s only main:artifacts/$(rarity)/$(score)