Program: 174577
Project: 174577
Buggy source:
public EntityAgate(World worldIn){
  super(worldIn);
  this.setSize(0.9F,2.3F);
  this.isSoldier=true;
  this.setValidCut(GemCuts.TEARDROP);
  this.setValidPlacement(GemPlacements.BACK_OF_HEAD);
  this.setValidPlacement(GemPlacements.FOREHEAD);
  this.setValidPlacement(GemPlacements.LEFT_EYE);
  this.setValidPlacement(GemPlacements.RIGHT_EYE);
  this.setValidPlacement(GemPlacements.NOSE);
  this.setValidPlacement(GemPlacements.LEFT_CHEEK);
  this.setValidPlacement(GemPlacements.RIGHT_CHEEK);
  this.setValidPlacement(GemPlacements.LEFT_SHOULDER);
  this.setValidPlacement(GemPlacements.RIGHT_SHOULDER);
  this.setValidPlacement(GemPlacements.LEFT_HAND);
  this.setValidPlacement(GemPlacements.RIGHT_HAND);
  this.setValidPlacement(GemPlacements.BACK);
  this.setValidPlacement(GemPlacements.CHEST);
  this.setValidPlacement(GemPlacements.BELLY);
  this.setValidPlacement(GemPlacements.LEFT_THIGH);
  this.setValidPlacement(GemPlacements.RIGHT_THIGH);
  this.setValidPlacement(GemPlacements.LEFT_KNEE);
  this.setValidPlacement(GemPlacements.RIGHT_KNEE);
  this.stayAI=new EntityAIStay(this);
  this.tasks.addTask(1,new EntityAIFollowDiamond(this,1.0D));
  this.tasks.addTask(2,new EntityAISitStill(this,1.0D));
  this.tasks.addTask(3,new EntityAIScareMobs(this));
  this.tasks.addTask(4,new EntityAIWatchClosest(this,EntityPlayer.class,16.0F));
  this.tasks.addTask(4,new EntityAIWatchClosest(this,EntityMob.class,16.0F));
  this.tasks.addTask(5,new EntityAILookIdle(this));
  this.targetTasks.addTask(1,new EntityAIDiamondHurtByTarget(this));
  this.targetTasks.addTask(2,new EntityAIDiamondHurtTarget(this));
  this.targetTasks.addTask(3,new EntityAIHurtByTarget(this,false,new Class[0]));
  this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(100.0D);
  this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(8.0D);
  this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.4D);
  this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).setBaseValue(1.0D);
  this.droppedGemItem=ModItems.AGATE_GEM;
  this.droppedCrackedGemItem=ModItems.CRACKED_AGATE_GEM;
  this.dataManager.register(COLOR,Integer.valueOf(new Random().nextInt(15)));
}

Fixed version (ground truth):
public EntityAgate(World worldIn){
  super(worldIn);
  this.setSize(0.9F,2.3F);
  this.isSoldier=true;
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.BACK_OF_HEAD);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.FOREHEAD);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_EYE);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_EYE);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.NOSE);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_CHEEK);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_CHEEK);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_SHOULDER);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_SHOULDER);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_HAND);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_HAND);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.BACK);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.CHEST);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.BELLY);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_THIGH);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_THIGH);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.LEFT_KNEE);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.RIGHT_KNEE);
  this.stayAI=new EntityAIStay(this);
  this.tasks.addTask(1,new EntityAIFollowDiamond(this,1.0D));
  this.tasks.addTask(2,new EntityAISitStill(this,1.0D));
  this.tasks.addTask(3,new EntityAIScareMobs(this));
  this.tasks.addTask(4,new EntityAIWatchClosest(this,EntityPlayer.class,16.0F));
  this.tasks.addTask(4,new EntityAIWatchClosest(this,EntityMob.class,16.0F));
  this.tasks.addTask(5,new EntityAILookIdle(this));
  this.targetTasks.addTask(1,new EntityAIDiamondHurtByTarget(this));
  this.targetTasks.addTask(2,new EntityAIDiamondHurtTarget(this));
  this.targetTasks.addTask(3,new EntityAIHurtByTarget(this,false,new Class[0]));
  this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(100.0D);
  this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(8.0D);
  this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.4D);
  this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).setBaseValue(1.0D);
  this.droppedGemItem=ModItems.AGATE_GEM;
  this.droppedCrackedGemItem=ModItems.CRACKED_AGATE_GEM;
  this.dataManager.register(COLOR,Integer.valueOf(new Random().nextInt(15)));
}