
# -> Detect if boat just fell
execute if score @s OverlyRealistic.General.ArbitraryData matches 39000.. \
    if data entity @s {fall_distance:0.0d} run \
        function overly_realistic:general/boats/boat_fall

# -> Get fall distance
execute store result score @s OverlyRealistic.General.ArbitraryData run \
    data get entity @s fall_distance 10000