Hello! I need help looping a specific dropped item in a radius of X from players death point and giving the looped item to the attacker also the all other items gets cleared, for example:
Code:
on death of player:
set {playerdeath::%victim's uuid%} to location of victim
loop all dropped items in radius 5 of location at {_playerdeath::%victim's uuid%}:
if loop-value is iron ingot:
set {_ironchecker.%victim's uuid%} to amount of iron ingot in loop-value
give {_ironchecker.%victim's uuid%} of iron ingot to the attacker