scoreboard players set min rng 0
scoreboard players set max rng 3
execute if predicate 0_enemy_boss:mob_death/cursed run scoreboard players add max rng 1
function rng:interval

function items:shop/summon/copper_coin
execute if score out rng matches 2.. run function items:shop/summon/copper_coin
execute if score out rng matches 3.. run function items:shop/summon/copper_coin
execute if score out rng matches 4 run function items:shop/summon/copper_coin
