function rng:percentage

# 20
execute if score out rng matches ..20 run effect give @s weakness 22 1
execute if score out rng matches ..20 run tellraw @s [{"translate":"pandoras_pouch.msg.weakness.s0","color":"gray"},{"translate":"pandoras_pouch.msg.weakness.s1","italic":true,"color":"dark_gray"}]
# 20
execute if score out rng matches 21..40 run effect give @s instant_damage 1 0
execute if score out rng matches 21..40 run tellraw @s [{"translate":"pandoras_pouch.msg.instant_damage.s0","color":"gray"},{"translate":"pandoras_pouch.msg.instant_damage.s1","italic":true,"color":"dark_gray"}]
# 20
execute if score out rng matches 41..60 run effect give @s hunger 5 255
execute if score out rng matches 41..60 run tellraw @s [{"translate":"pandoras_pouch.msg.hunger.s0","color":"gray"},{"translate":"pandoras_pouch.msg.hunger.s1","italic":true,"color":"dark_gray"}]
# 20
execute if score out rng matches 61..80 run effect give @s slowness 22 2
execute if score out rng matches 61..80 run tellraw @s [{"translate":"pandoras_pouch.msg.slowness.s0","color":"gray"},{"translate":"pandoras_pouch.msg.slowness.s1","italic":true,"color":"dark_gray"}]
# 20
execute if score out rng matches 81.. run scoreboard players add pandoras_pouch curse 100
execute if score out rng matches 81.. run tellraw @s [{"translate":"pandoras_pouch.msg.curse.s0","color":"gray"},{"translate":"pandoras_pouch.msg.curse.s1","italic":true,"color":"dark_gray"}]
