Spawn Cancel With In Range

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

Dan Owen

Member
Aug 21, 2017
17
0
1
Good Afternoon Everyone

I have just updated my skipt and found an issue (it may well be my code) the below worked perfectly before the update and now (no errors) does not work

Have I missed something?

Code:
on spawn of Enderman or Creeper or Drowned or Endermite or Evoker or Ghast or Guardian or Husk or Magma Cube or Phantom or Shulker or Silverfish or Skeleton or Slime or Stray or Vex or Vindicator or Witch or Wither Skeleton or Zombie or Zombie Villager or Spider:
    loop {mobRepellentlarge::*}:
        if distance between event-location and loop-value is less than 50: #loop-value = "loop-location" (from list variable)
            cancel event
            broadcast "DEBUG: cancelled spawn due to mob repellent at %loop-value%"
            stop loop
[doublepost=1610702017,1607259501][/doublepost]
TautActiveHusky-size_restricted.gif
 
Status
Not open for further replies.