
# -> Active leaf trap operations
execute as @e[type=marker,tag=OverlyRealistic.LeafTrapActive] \
    at @s \
    align xyz \
    if entity @n[dx=0,dy=1,dz=0] run \
        function overly_realistic:general/leaf_traps/leaf_trap_break_on_entity

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

# -> Loop
schedule function overly_realistic:general/main_loops/main_loop_5t 5t