function rng:percentage
scoreboard players operation out rng += global luck

execute if score out rng matches ..69 run playsound custom.lucky_egg.crack.unlucky ambient @a ~ ~ ~
execute if score out rng matches 70.. run function items:obj/lucky_egg/lucky
