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.

Kill a loop-mob every minute. Please help its urgent.

Discussion in 'Skript' started by GamingHard, Oct 5, 2019.

  1. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    So basically, i want to kill all armor stands in the world "creative" every minute. Here is my code, i dont know why it doesnt work:

    Code (Text):
    1. every 1 minute:
    2.     loop all mobs in world "creative":
    3.         if loop-mob is "armor stand":
    4.             kill loop-mob
    5.        
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    1) Armor stands are not mobs
    2) you can't compare an entity with a string
    3) Just kill all amor stands
    try this:
    Code (Skript):
    1. every 1 minute:
    2.     kill all armor stands in world "creative"
     
    #2 ShaneBee, Oct 6, 2019
    Last edited: Oct 6, 2019
  3. H3A

    H3A Active Member

    Joined:
    Aug 19, 2019
    Messages:
    30
    Likes Received:
    1
    Use loop entity,
    You can't compare an entity to a string.
     
  4. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    Thank you i will try that!
     
Loading...