1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How to make head go in chest as well when they die

Discussion in 'Skript' started by PotteryTNT, May 23, 2018.

Thread Status:
Not open for further replies.
  1. PotteryTNT

    PotteryTNT Active Member

    Joined:
    Jul 21, 2017
    Messages:
    36
    Likes Received:
    0
    So there is this scenario in UHC called Grave robbers where when a player is killed a grave stone will spawn with that players name on it, which then we have to dig up the grave to get the head and players inventory.

    But, the head doesn't drop in the chest and I can't figure out what to add to the skript to make the head drop into the chest. This is the code right now.
    https://pastebin.com/bqex7TQ7
     
  2. Best Answer:
    Post #2 by Runakai1, May 23, 2018
  3. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    398
    Likes Received:
    22
    It
    It's not tested but I think this should work:
    Code (Skript):
    1.  
    2.     set {_chestloc} to block 1 meter north of {GR::loc::%victim%}
    3.     add victim's skull to inventory of block at {_chestloc}
     
  4. PotteryTNT

    PotteryTNT Active Member

    Joined:
    Jul 21, 2017
    Messages:
    36
    Likes Received:
    0
    Thanks it worked <3
     
Thread Status:
Not open for further replies.
Loading...