Mob Spawning Issue

Discussion in 'Plugin Development' started by Bevitt2008, Nov 2, 2013.

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

    Bevitt2008

    Hi Guys

    Iv Got a problem with custom mob spawning.

    Basically I want to be able to:

    When a player is within 300 blocks of position “A” we want a mob to spawn at position “A”
    I don't want to use worldguard to define the spawn location of the mobs, as this will cause lag.

    The amount of world guard regions would be in excess of 300, so this isn't really an option.

    [​IMG]

    Thanks Bro's
     
  2. Offline

    GusGold

    Bevitt2008
    Have you attempted this yet? What code have you tried so far?
     
  3. Offline

    ceoepts

    Im not sure about this:
    I do not think there is any other way then to constantly check if a player is in a radius of point A.
    This could be done in a Schedule(get all the players through a for(p : <All Players>)) or in a PlayerMoveEvent.
    Here is an thread about how to get players in a radius of a location:
    https://forums.bukkit.org/threads/s...dius-whithout-player-getnearbyentities.87074/
    I think this defenetly is better/easier then created and checking a worldguard area. Thanks for reading hope it helps :D Please leave a like if it did.
     
Thread Status:
Not open for further replies.

Share This Page