
# -> Sound
execute at @s run \
    playsound entity.experience_orb.pickup player @s ~ ~ ~ 1 0

# -> Toggle setting
scoreboard players set #or.setting.nerfed_aggro_animals OverlyRealistic.Settings.ArbitrarySetting 0

# -> Operate on loaded entities
execute as @e[type=#overly_realistic:common_animals,tag=OverlyRealistic.CommonAnimalAggressive,x=0] \
    on passengers run \
        attribute @s[type=piglin_brute] follow_range modifier remove overly_realistic:nerfed_aggro_animal_follow_range
execute as @e[type=#overly_realistic:common_animals,tag=OverlyRealistic.CommonAnimalAggressive,x=0] \
    on passengers run \
        attribute @s[type=piglin_brute] attack_damage modifier remove overly_realistic:nerfed_aggro_animal_attack_damage
