scoreboard players remove @s generic_timer 1

execute if score @s generic_timer matches 40 run function pctf:logic/items/lucky_block/outcomes/global/milk/end

execute if score @s generic_timer matches ..0 run function pctf:logic/items/lucky_block/outcomes/global/milk/stats