execute if entity @s[tag=despawn_value_1] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 1
execute if entity @s[tag=despawn_value_2] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 2
execute if entity @s[tag=despawn_value_3] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 3
execute if entity @s[tag=despawn_value_4] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 4
execute if entity @s[tag=despawn_value_5] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 5
execute if entity @s[tag=despawn_value_10] run scoreboard players add @p[tag=necromancer_call_despawn,limit=1,sort=nearest] necromancer_bone_density 10

execute if entity @s[tag=despawn_value_1] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+1 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]
execute if entity @s[tag=despawn_value_2] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+2 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]
execute if entity @s[tag=despawn_value_3] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+3 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]
execute if entity @s[tag=despawn_value_4] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+4 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]
execute if entity @s[tag=despawn_value_5] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+5 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]
execute if entity @s[tag=despawn_value_10] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run title @p[tag=necromancer_call_despawn,limit=1,sort=nearest] actionbar [{"bold":true,"text":"+10 ⛃ Bone Density ["},{"score":{"name":"@s","objective":"necromancer_bone_density"}},"/",{"score":{"name":"@s","objective":"necromancer_bone_density_milestone"}},{"text":"]"}]

execute if entity @s[tag=despawn_value_1] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 10 0 true
execute if entity @s[tag=despawn_value_2] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 15 1 true
execute if entity @s[tag=despawn_value_3] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 20 2 true
execute if entity @s[tag=despawn_value_4] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 25 3 true
execute if entity @s[tag=despawn_value_5] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 30 4 true
execute if entity @s[tag=despawn_value_10] as @p[tag=necromancer_call_despawn,limit=1,sort=nearest] run effect give @p[tag=necromancer_call_despawn,limit=1,sort=nearest] absorption 60 5 true