
# -> Operate on heavy entities above ice
execute as @e[type=#overly_realistic:heavy_entities,x=0] \
    at @s \
    if block ~ ~-0.4 ~ ice \
    if block ~ ~-2 ~ #overly_realistic:cant_support_ice \
    unless items entity @s armor.feet leather_boots[custom_data~{IsSnowBoots:1b}] run \
        function overly_realistic:general/block_physics/ice/thin_ice_break_attempt

# -> Function tag
function #overly_realistic:general_loops/main_40t

# -> Loop (2s)
schedule function overly_realistic:general/main_loops/main_loop_40t 40t
