Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iterator<EntityDataStorage> Iterator = MobData.iterator();
- while (Iterator.hasNext()){
- try{
- EntityDataStorage R = Iterator.next();
- Utils.LOG_INFO("Name: ["+R.getName()+"] UUID: ["+R.getId()+"] X: ["+R.getX()+"] Y: ["+R.getY()+"] Z: ["+R.getZ()+"]");
- Utils.LOG_INFO("STEP: 1");
- Iterator<EntityDataStorage> Iterator2 = MobData.iterator();
- while (Iterator2.hasNext()){
- try{
- Utils.LOG_INFO("STEP: 2");
- EntityDataStorage R2 = Iterator2.next();
- double distance = entityMath(R.getMob(), R2.getMob());
- if (distance < (minDis) || distance < 20){
- Utils.LOG_INFO("STEP: 3");
- int R5 = new Random().nextInt(20);
- if (R5 > 18){
- Utils.LOG_INFO("Killing Name: ["+R2.getName()+"] UUID: ["+R2.getId()+"] X: ["+R2.getX()+"] Y: ["+R2.getY()+"] Z: ["+R2.getZ()+"]");
- R2.getMob().setDead();
- //Iterator2.remove();
- kills++;
- }
- }
- }catch(NoSuchElementException e) { }
- }
- }catch(NoSuchElementException e) { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement