# base: 50/50   luck(100%): +25  ->   max: 75/25
function rng:percentage
scoreboard players operation #tmp rng = global luck
scoreboard players set #tmp1 rng 4
scoreboard players operation #tmp rng /= #tmp1 rng
scoreboard players operation out rng -= #tmp rng
scoreboard players operation #tmp rng = out rng
execute if score #tmp rng matches ..50 run function items:passive/pandoras_pouch/good
execute if score #tmp rng matches 51.. run function items:passive/pandoras_pouch/bad
