## Specific ice type
execute store result score @s vb.dummy1 run random value 1..10
# Blue ice = guaranteed +1
$execute if items block ~ ~ ~ container.$(slot) minecraft:blue_ice run scoreboard players add @s vb.timer.esky 1
# Packed ice = 80% chance of +1
$execute if items block ~ ~ ~ container.$(slot) minecraft:packed_ice if score @s vb.dummy1 matches 1..8 run scoreboard players add @s vb.timer.esky 1
# Ice = 10% chance of +1
$execute if items block ~ ~ ~ container.$(slot) minecraft:ice if score @s vb.dummy1 matches 1 run scoreboard players add @s vb.timer.esky 1

## Degrade ice
# 20% chance to degrade the ice
execute store result score @s vb.dummy1 run random value 1..10
$execute if score @s vb.dummy1 matches 1..2 run item modify block ~ ~ ~ container.$(slot) {function:"minecraft:set_count",count:-1,add:1b}
