
# -> Decrease bleeding timer
execute if score @s OverlyRealistic.Player.BleedingTimer matches 1.. run \
    scoreboard players remove @s OverlyRealistic.Player.BleedingTimer 1

# -> If player is on ground then create blood splatter
execute if score #or.setting.generate_blood_splatters OverlyRealistic.Settings.ArbitrarySetting matches 1 \
    at @s \
    if score @s OverlyRealistic.PredicateValue.IsOnGround matches 1 run \
        function overly_realistic:players/misc/ground_markings/blood/create_blood_splatter

# -> Mental health decrease RNG
execute if predicate overly_realistic:player/damage/mental_health_bleed_decrease_rng run \
    function overly_realistic:players/mental_health/decrease_mental_health_by_1

# -> Particle
particle minecraft:block{block_state:"minecraft:redstone_block"} ~ ~0.5 ~ 0.1 0.5 0.1 0.001 20 normal @a

# -> Function tag
function #overly_realistic:mechanics/player_currently_bleeding
