## Chill food
# 40% chance change to increase score
execute store result score @s vb.dummy1 run random value 1..10
execute if score @s vb.dummy1 matches 1..4 run scoreboard players add @s vb.timer.esky 1

## Use ice inside
execute if items block ~ ~ ~ container.* #vb:ice run function vb:tick_entity/custom_block/esky/ice_check

## Craft items
execute if score @s vb.timer.esky matches 300.. if items block ~ ~ ~ container.* #vb:esky_crafts run function vb:tick_entity/custom_block/esky/craft_check
execute if score @s vb.timer.esky matches 300.. run scoreboard players remove @s vb.timer.esky 300