
# -> Reset adv trigger
advancement revoke @s only overly_realistic:player/player_get_hurt_spider

# -> Get difficulty level
execute store result score #or.global OverlyRealistic.General.ArbitraryData run \
    difficulty

# -> Poison RNG
execute if score #or.global OverlyRealistic.General.ArbitraryData matches 2.. \
    if predicate overly_realistic:player/damage/spider_damage_rng run \
        return run \
            effect give @s poison 10 0 true

# -> Illness RNG
execute if score #or.global OverlyRealistic.General.ArbitraryData matches 2.. \
    if predicate overly_realistic:player/damage/spider_damage_rng_illness run \
        function overly_realistic:players/illness/get_illness
