I have some trouble with my skript. Items should be saved in "drops" list after death, and when the items despawn, they should be moved from "drops" list to "stuff" list.
Items do save in "drops" list, but I have problems moving them to "stuff" list after items despawn. So I'm doing something wrong in the 3rd segment... Any ideas?
Items do save in "drops" list, but I have problems moving them to "stuff" list after items despawn. So I'm doing something wrong in the 3rd segment... Any ideas?
Code:
on join:
if {players::*} does not contain player's uuid:
add player's uuid to {players::*}
on death of player:
set {_playeruuid} to victim's uuid
add drops to {drops::%{_playeruuid}%::*}
on item despawn:
loop {players::*}:
loop {drops::%loop-value-1%::*}:
if event-entity is loop-value-2:
add loop-value-2 to {stuff::%loop-value-1%::*}
remove loop-value-2 from {drops::%loop-value-1%::*}
Last edited: