Could someone help me, I'm trying to make slightly a kill rewards system but more of taking something from the victim's inventory and giving it to the attacker.
I've done this but doesn't seem to work: (Also with skript error)
on death:
if attacker is player:
set {_h} to amount of skulls in victim's inventory
remove {_h} from victim's inventory
give {_h} to attacker
I've done this but doesn't seem to work: (Also with skript error)
on death:
if attacker is player:
set {_h} to amount of skulls in victim's inventory
remove {_h} from victim's inventory
give {_h} to attacker