
# -> 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 at @s if predicate overly_realistic:global/is_on_ground run \
    summon minecraft:block_display ~ ~0.5 ~ {Tags:["OverlyRealistic.GroundBloodSplatter","OverlyRealistic.GroundMarking"], block_state: {Name: "minecraft:redstone_wire", Properties: {east: "none", north: "none", power: "0", south: "none", west: "none"}}, transformation: {left_rotation: [0.0f, 0.0f, 0.0f, 1.0f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [1.35f, 1.0f, 1.35f], translation: [-0.5f, -0.5f, -0.5f]}}

# -> Mental health decrease RNG
execute if predicate overly_realistic:player/damage/mental_health_bleed_decrease_rng run \
    function overly_realistic:players/mental_health/edit_mental_health {type:"remove",value:1}

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

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