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

# -> Particles
particle minecraft:block{block_state:"minecraft:redstone_block"} ~ ~ ~ 0 0 0 0.001 10 normal @a

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

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

# -> Breaking bone sound
execute if predicate overly_realistic:player/damage/breaking_bone_sound_rng run \
    playsound minecraft:entity.player.big_fall player @a ~ ~ ~ 0.85 0