execute if score .artifact_random_quality arena matches 1..50 run scoreboard players set .artifact_rarity arena 1
execute if score .artifact_random_quality arena matches 51..80 run scoreboard players set .artifact_rarity arena 2
execute if score .artifact_random_quality arena matches 81..98 run scoreboard players set .artifact_rarity arena 3
execute if score .artifact_random_quality arena matches 99..100 run scoreboard players set .artifact_rarity arena 4