# ==================================================
# void vb.zzz_sl_block.128()
# a.k.a vb.powerup.take._0.1
# ==================================================

scoreboard players set @s vb.powerup.taken 1
particle zedafox:powerup_stars ~ ~0.2 ~
particle zedafox:powerup_circle ~ ~0.2 ~
execute as @a[c=1] at @s run playsound scored @s ~ ~ ~ 1 3
scoreboard players random vb.powerup.take._0._0._1 tbms.var 0 4
execute if score vb.powerup.take._0._0._1 tbms.var matches 0 run function vb/powerup/start_ninja_ball
execute if score vb.powerup.take._0._0._1 tbms.var matches 1 run function vb/powerup/start_super_magnet
execute if score vb.powerup.take._0._0._1 tbms.var matches 2 run function vb/powerup/start_change_size
execute if score vb.powerup.take._0._0._1 tbms.var matches 3 run function vb/powerup/start_slowed
execute if score vb.powerup.take._0._0._1 tbms.var matches 4 run function vb/powerup/start_white_ninja
execute as @a[c=1] run function vb/zzz_sl_block/127
event entity @s despawn
