Solved Designated spawning

Discussion in 'Plugin Development' started by johnnyD, Jan 20, 2021.

  1. Offline

    johnnyD

    How could I go about creating a region and then allowing certain mobs to only spawn in the region?
     
  2. Offline

    Strahan

    Create a WorldGuard region and then add flag deny-spawn and list out everything you don't want to appear in the region.
     
  3. Offline

    johnnyD

    I knew you could do it with the world guard plugin, but I was wondering how you would do it without worldguard
     
  4. Offline

    Strahan

    You can listen to CreateSpawnEvent then check if the entity is within the bounds of the area. If they are, return. If not, set cancelled true.
     

Share This Page