
# -> If player pain is disabled then return
execute if score #or.setting.player_pain OverlyRealistic.Settings.ArbitrarySetting matches 0 run \
    return fail

# -> Set pain time
scoreboard players set @s OverlyRealistic.Player.PlayerPainTimer 10

# -> Set modifiers
attribute @s block_break_speed modifier add overly_realistic:player_pain_debuff -999 add_value
execute if score #or.setting.harsher_pain OverlyRealistic.Settings.ArbitrarySetting matches 1 run \
    attribute @s block_interaction_range modifier add overly_realistic:player_pain_debuff -999 add_value
