When I try removing an item from a player. It tells me to "Use 'attacker' and or 'victim' in damage/death events" The code is
remove 1 of tool from victim
I am using an on death event and using victim. I don't know why its tells me to use victim. I did try changing it to attacker and player both giving the same error.
My whole code is:
on death of player:
if victim has paper named "&o&bThe Pass":
cancel drops
keep the inventory and experiences points
wait 1 tick
remove 1 of tool from victim