Clear drop with custom name on death

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

auttasit23

New Member
May 5, 2020
5
0
1
23
Code:
on damage of player:
    if victim's health is less then 0:
        loop all items in victim's inventory:
            loop-item is stone axe:
                remove loop-item from victim

it not working pls help TwT
 
First of all, whats the error? 2. Its an item, not a custom name. 3. Maybe this:
Code:
on death:
    loop drops:
        if loop-value contains stone axe:
            delete loop-value
 
First of all, whats the error? 2. Its an item, not a custom name. 3. Maybe this:
Code:
on death:
    loop drops:
        if loop-value contains stone axe:
            delete loop-value
Can i use stone axe named "" with lore "" ?
[doublepost=1594724183,1594723935][/doublepost]
First of all, whats the error? 2. Its an item, not a custom name. 3. Maybe this:
Code:
on death:
    loop drops:
        if loop-value contains stone axe:
            delete loop-value
it said loop-value cant be delete
 
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:
on death:
    loop drops:
        if loop-value is stone axe with lore "example text":
            remove loop-value from drops
 
Status
Not open for further replies.