#Keep Specific Items on Death

1 messages · Page 1 of 1 (latest)

storm lantern
#

I'm trying to make a Skript where you keep specific items on death, not your entire inventory, the only thing I see on the docs makes it so you keep your entire inventory.

crystal harbor
#

Hmm my way would be to have keepInventory and and during the on death: event I'd loop through the player's inventory and drop everything that's not whitelisted

storm lantern
#

I found something that worked really well on the internet, but thank you for the help!

#
    loop drops:
        loop-item is a (item) named "(itemname)":
            remove loop-item from drops
            wait 5 ticks
            add loop-item to victim's inventory ```
#

thats the skript for anyone wondering