Code:
on death:
if {hasbounty::%victim's uuid%} is true:
set {hasbounty::%victim's uuid%} to false
set {bounty::%victim%} to 0
add {bounty::%victim%} to attacker's balance
delete holograms {bholo::%victim's uuid%}
else:
if {killstreak::%attacker's uuid%} is divisible by 2:
if {killstreak::%attacker's uuid%} is not 2:
set {hasbounty::%attacker's uuid%} to true
add 50 to {bounty::%attacker's uuid%}
bountyholo(attacker)
function bountyholo(p: player):
create new hologram with line "$%{bounty::%{_p}%}%"
set {_directions::*} to 0.5 meters horizontally infront, 2 meter above and 0.5 meters right
make the last created hologram follow {_p} with offset {_directions::*}
error: There is no location in a function event