I'm trying to get the killer from crystal pvp
I know why you can't do
attacker is end crystal
but I don't know how to do it now
code_language.skript:
on death of player:
victim is player
attacker is end crystal
add 1 to {kills::%metadata value "playerWhoDetonated" of attacker parsed as player%}
broadcast "&c%victim% &fwas BLOWN up by &c%metadata value "playerWhoDetonated" of attacker parsed as player%"
#And this is what sets the nbt data
on damage:
if victim is end crystal:
set metadata value "playerWhoDetonated" of victim to damager
#This is the error
Can't compare entity with heal reason
I know why you can't do
attacker is end crystal
but I don't know how to do it now