scoreboard players set r Random 9
function mctsts:util/random
tellraw @a ["",{"text":" |   ","color":"gray"},{"translate":"game.collect_powerup","color":"gray","with":[{"selector":"@s"},{"translate":"powerup.tier.3","color":"blue","bold":true}]}]
execute if score n Random matches 1 run give @s stone_sword{Enchantments:[{id:"knockback",lvl:4}],HideFlags:63,display:{Name:'[{"translate":"powerup.1.name","color":"white","bold":true,"italic":false}," - ",{"translate":"powerup.lvl","with":["III"]}]'},Damage:131,powerup:1}
execute if score n Random matches 2 run give @s minecraft:carrot_on_a_stick{Damage:3,Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.4.name","color":"white","bold":true,"italic":false}," x3"]'},powerup:4}
execute if score n Random matches 3 run give @s minecraft:golden_boots{Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.5.name","color":"white","bold":true,"italic":false}," - ",{"translate":"powerup.lvl","with":["II"]}]'},powerup:5}
execute if score n Random matches 4 run give @s minecraft:carrot_on_a_stick{CustomModelData:2,Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.12.name","color":"white","bold":true,"italic":false}]'},powerup:12}
execute if score n Random matches 5 run give @s minecraft:totem_of_undying{Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.13.name","color":"white","bold":true,"italic":false}]'},powerup:13}
execute if score n Random matches 6 run function mctsts:game/items/invisible
execute if score n Random matches 7 run give @s minecraft:carrot_on_a_stick{Damage:5,Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.7.name","color":"white","bold":true,"italic":false}]'},powerup:7}
execute if score n Random matches 8 run give @s minecraft:carrot_on_a_stick{CustomModelData:4,Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.18.name","color":"white","bold":true,"italic":false}]'},powerup:18}
execute if score n Random matches 9 run give @s snowball{Unbreakable:1,HideFlags:63,display:{Name:'[{"translate":"powerup.3.name","color":"white","bold":true,"italic":false}]'},powerup:3} 3
scoreboard players set n Random 0