Solved get mob amount in a chunk

Discussion in 'Plugin Development' started by re4ly, Jul 16, 2013.

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

    re4ly

    How can i get the amount of mobs in a chunk?

    int amount = 0;
    for(Entity entity : spawnarea2.getChunk().getEntities()) {
    if(entity instanceof LivingEntity)
    amount++;
    }
     
Thread Status:
Not open for further replies.

Share This Page