need help with list variable and dropped items

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

Status
Not open for further replies.

loadka95

Active Member
Feb 24, 2017
78
6
8
I want to delete every item from the ground if I run this command (/bdelete), but if the list variable has item in it, don't delete those, just everything else.

so far this is what i got, but its not working properly


code_language.skript:
command /ba [<item>]:
    trigger:
        add arg 1 to {tlist::*}
command /bdelete:
    trigger:
        loop all dropped items:
            loop {tlist::*}:
                if items within entity loop-value-1 != loop-value-2:
                    delete loop-value-1
 
Status
Not open for further replies.