Death Packages

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Hami69420_

Member
May 17, 2024
1
0
1
I want skript that when you kill a player the chest will drop with his items in and the chest name will be "Death Package" and lore &b&lRight Click To Claim Your Loot ,
 
Code:
on death:
    set {-drops::%victim's uuid%::*} to drops
    drop 1 of chest named "&c%victim%'s Death Package" with lore "&aRight click to claim!"
    
on right click:
    name of event-item contains "Death Package":
        set {_d} to name of event-item
        replace all "&c" and "'s Death Package" in {_d} with ""
        set {_f} to {_d} parsed as offline player
        give player {-drops::%{_f}'s uuid%::*}
        delete {-drops::%{_f}'s uuid%::*}
should work