Solved Mob Effects

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

HiddenDev

Member
Sep 19, 2017
43
2
0
21
Hey I am making custom mob effects if something is set at a certain number.

code_language.skript:
command /testmob:
    trigger:
        spawn 1 zombie at location of player
            heal spawned entity
            if {zombiespeed.%uuid of player%} is 1:
                apply speed 1 to the spawned entity for 9999 minutes
            if {zombiespeed.%uuid of player%} is 2:
                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!
 
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.
 
Status
Not open for further replies.