scoreboard players set r Random 100
function mctsts:util/random

execute if score n Random matches 1..34 run function mctsts:game/powerup/1
execute if score n Random matches 35..62 run function mctsts:game/powerup/2
execute if score n Random matches 63..87 run function mctsts:game/powerup/3
execute if score n Random matches 88..98 run function mctsts:game/powerup/4
execute if score n Random matches 99..100 run function mctsts:game/powerup/5

function mctsts:game/remove_powerup
effect give @s levitation 1 25 true
tag @s add powerupLevitation