function main:mechanics/artifacts/random/list
$execute as @a run function main:mechanics/artifacts/random/choose_artifact {"quality":$(quality)}
execute store result storage mechanics artifact.id int 1 run scoreboard players get .artifact mechanics
$function main:mechanics/artifacts/random/grant_$(quality) with storage mechanics artifact