scoreboard players random @s randomblock 1 9 
execute as @s[scores={randomblock=1}] at @s run function button/blast_furnace
execute as @s[scores={randomblock=2}] at @s run function button/barrel
execute as @s[scores={randomblock=3}] at @s run function button/bookshelf
execute as @s[scores={randomblock=4}] at @s run function button/crafting_table
execute as @s[scores={randomblock=5}] at @s run function button/chest
execute as @s[scores={randomblock=6}] at @s run function button/hay
execute as @s[scores={randomblock=7}] at @s run function button/sponge
execute as @s[scores={randomblock=8}] at @s run function button/oak
execute as @s[scores={randomblock=9}] at @s run function button/pumpkin
scoreboard players reset @s randomblock

replaceitem entity @s slot.hotbar 1 destroy minecraft:splash_potion 1 16

titleraw @s title {"rawtext":[{"text":"§eYOU ARE BLOCK!"}]}
titleraw @s subtitle {"rawtext": [{"translate": "text.tip.block"}]}