execute if score reward_chest_chance world_upgrades matches 5 run scoreboard players set world RewardChestChance 40
execute if score reward_chest_chance world_upgrades matches 4 run scoreboard players set world RewardChestChance 36
execute if score reward_chest_chance world_upgrades matches 3 run scoreboard players set world RewardChestChance 32
execute if score reward_chest_chance world_upgrades matches 2 run scoreboard players set world RewardChestChance 28
execute if score reward_chest_chance world_upgrades matches 1 run scoreboard players set world RewardChestChance 24