public void spawnSeekers() { if (!TragicConfig.getBoolean("overlordSeekers")) return; int i; switch (this.getCurrentPhase()) { case 0: i = 2 + rand.nextInt(2); break; case 1: i = 2 + rand.nextInt(2); break; case 2: i = 3 + rand.nextInt(3); break; case 3: i = 3 + rand.nextInt(3); break; case 4: i = 4 + rand.nextInt(4); break; default: i = 1; break; } for (int x = 0; x < i; x++) { EntitySeeker seeker = new EntitySeeker(this.worldObj); seeker.setPosition( this.posX + rand.nextInt(12) - rand.nextInt(12), this.posY + rand.nextInt(12), this.posZ + rand.nextInt(12) - rand.nextInt(12)); seeker.setOwner(this); this.worldObj.spawnEntityInWorld(seeker); this.seekers.add(seeker); } }