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 out 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.

Clear drop with custom name on death

Discussion in 'Skript' started by auttasit23, Jul 13, 2020.

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

    auttasit23 New Member

    Joined:
    May 5, 2020
    Messages:
    5
    Likes Received:
    0
    Code (Text):
    1. on damage of player:
    2.     if victim's health is less then 0:
    3.         loop all items in victim's inventory:
    4.             loop-item is stone axe:
    5.                 remove loop-item from victim
    it not working pls help TwT
     
  2. xCoini

    xCoini Member

    Joined:
    Apr 19, 2019
    Messages:
    14
    Likes Received:
    0
    First of all, whats the error? 2. Its an item, not a custom name. 3. Maybe this:
    Code (Text):
    1. on death:
    2.     loop drops:
    3.         if loop-value contains stone axe:
    4.             delete loop-value
     
  3. auttasit23

    auttasit23 New Member

    Joined:
    May 5, 2020
    Messages:
    5
    Likes Received:
    0
    Can i use stone axe named "" with lore "" ?
    --- Double Post Merged, Jul 14, 2020, Original Post Date: Jul 14, 2020 ---
    it said loop-value cant be delete
     
  4. BaeFell

    BaeFell I'm Poppy
    Admin Supporter

    Joined:
    Nov 27, 2016
    Messages:
    915
    Likes Received:
    228
    You can't delete loop-value. You can remove the loop-value from the drops. It helps to look at the docs for this as it does say to use remove: https://docs.skunity.com/syntax/search/id:3844

    Code (Text):
    1.  
    2. on death:
    3.     loop drops:
    4.         if loop-value is stone axe with lore "example text":
    5.             remove loop-value from drops
    6.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...