Solved Need help with loops

  • 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 all the items from the ground, expect one which is gold ingot... but i have no idea how to do it..

so far this is what i got:

code_language.skript:
command /delg:
    trigger:
        loop all dropped items:
            loop-value is gold ingot
            delete loop-value
 
I need also help with loops, how can i kill a specified mob with specified name? For example a cave spider named "BOSS?"
 
@Rayser You can loop cave spiders, check the loop-entity's name, then kill it. Also, in the future, make your own damn thread instead of hijacking someone else's.
 
@Rayser You can loop cave spiders, check the loop-entity's name, then kill it. Also, in the future, make your own damn thread instead of hijacking someone else's.
I tried but now worked, can you help me with the code?
 
Status
Not open for further replies.