Cuboid Region + Mob spawning

Discussion in 'Plugin Development' started by hubeb, Jun 11, 2013.

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

    hubeb

    Ok, so what i want to do is when an op types /sm <name> <mob> it will make a cuboid save the in a config and then will allow mobs to be spawned within that cuboid region.

    I have the command and the coordinate saving setup already, but i cant seems to figure out how to make the cuboid region and then how to spawn a certain amount of mobs in that region.

    Any help would be appreciated.
    Thanks,
    Hubeb
     
  2. Offline

    chasechocolate

    Maybe create a Cuboid class and in the constructor, add 2 location parameters for the opposite corners of the selection. To save it, all you need to save is the world name and X, Y and Z coordinates of each corner location.
     
Thread Status:
Not open for further replies.

Share This Page