
# -> Tag player
tag @s add OverlyRealistic.Player.UsedFishingRod

# -> Operate on nearby bobbers
execute as @e[type=fishing_bobber,distance=..64] run \
    function overly_realistic:players/misc/fishing_rod/rod_bobber_operate_on_rod_use

# -> Untag player
tag @s remove OverlyRealistic.Player.UsedFishingRod

# -> Reset counter
scoreboard players reset @s OverlyRealistic.Player.UsedFishingRod
