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.

Solved Mob Effects

Discussion in 'Skript' started by HiddenDev, Nov 2, 2017.

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

    HiddenDev Member

    Joined:
    Sep 19, 2017
    Messages:
    43
    Likes Received:
    2
    Hey I am making custom mob effects if something is set at a certain number.

    Code (Skript):
    1. command /testmob:
    2.     trigger:
    3.         spawn 1 zombie at location of player
    4.             heal spawned entity
    5.             if {zombiespeed.%uuid of player%} is 1:
    6.                 apply speed 1 to the spawned entity for 9999 minutes
    7.             if {zombiespeed.%uuid of player%} is 2:
    8.                 apply speed 2 to the spawned entity for 9999 minutes
    However there are no errors, it spawns but no effect is added. I have changed the variables multiple times, and set them to both 1 and 2, but I am getting no where.

    Thanks!
     
  2. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    58
    Maybe you saved the variables as text, You need it saved it as integer or Parsed it.
     
  3. HiddenDev

    HiddenDev Member

    Joined:
    Sep 19, 2017
    Messages:
    43
    Likes Received:
    2
    Nope, they are defiantly integers.
     
  4. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    You sure the condition passed? Try adding a wait 1 tick after the zombie spawns.
    If the tick doesn't do anything, then try renaming entity to zombie.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...