Program: 174583
Project: 174583
Buggy source:
public EntityLapisLazuli(World worldIn){
  super(worldIn);
  this.setSize(0.6F,1.9F);
  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.BACK);
  this.setValidPlacement(GemPlacements.CHEST);
  this.setValidPlacement(GemPlacements.BELLY);
  this.stayAI=new EntityAIStay(this);
  this.tasks.addTask(1,new EntityAIAvoidEntity<EntityCreeper>(this,EntityCreeper.class,new Predicate<EntityCreeper>(){
    public boolean apply(    EntityCreeper input){
      return ((EntityCreeper)input).getCreeperState() == 1;
    }
  }
,6.0F,1.0D,1.2D));
  this.tasks.addTask(1,new EntityAIFollowDiamond(this,1.0D));
  this.tasks.addTask(3,new EntityAIOpenDoor(this,true));
  this.tasks.addTask(4,new EntityAIMoveTowardsTarget(this,0.414D,32.0F));
  this.tasks.addTask(5,new EntityAIWatchClosest(this,EntityPlayer.class,16.0F));
  this.tasks.addTask(5,new EntityAIWatchClosest(this,EntityMob.class,16.0F));
  this.tasks.addTask(6,new EntityAIStandGuard(this,0.6D));
  this.tasks.addTask(7,new EntityAILookIdle(this));
  this.targetTasks.addTask(1,new EntityAIHurtByTarget(this,false,new Class[0]));
  this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(80.0D);
  this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(8.0D);
  this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.4D);
  this.droppedGemItem=ModItems.LAPIS_LAZULI_GEM;
  this.droppedCrackedGemItem=ModItems.CRACKED_LAPIS_LAZULI_GEM;
}

Fixed version (ground truth):
public EntityLapisLazuli(World worldIn){
  super(worldIn);
  this.setSize(0.6F,1.9F);
  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.BACK);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.CHEST);
  this.setCutPlacement(GemCuts.TEARDROP,GemPlacements.BELLY);
  this.stayAI=new EntityAIStay(this);
  this.tasks.addTask(1,new EntityAIAvoidEntity<EntityCreeper>(this,EntityCreeper.class,new Predicate<EntityCreeper>(){
    public boolean apply(    EntityCreeper input){
      return ((EntityCreeper)input).getCreeperState() == 1;
    }
  }
,6.0F,1.0D,1.2D));
  this.tasks.addTask(1,new EntityAIFollowDiamond(this,1.0D));
  this.tasks.addTask(3,new EntityAIOpenDoor(this,true));
  this.tasks.addTask(4,new EntityAIMoveTowardsTarget(this,0.414D,32.0F));
  this.tasks.addTask(5,new EntityAIWatchClosest(this,EntityPlayer.class,16.0F));
  this.tasks.addTask(5,new EntityAIWatchClosest(this,EntityMob.class,16.0F));
  this.tasks.addTask(6,new EntityAIStandGuard(this,0.6D));
  this.tasks.addTask(7,new EntityAILookIdle(this));
  this.targetTasks.addTask(1,new EntityAIHurtByTarget(this,false,new Class[0]));
  this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(80.0D);
  this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(8.0D);
  this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.4D);
  this.droppedGemItem=ModItems.LAPIS_LAZULI_GEM;
  this.droppedCrackedGemItem=ModItems.CRACKED_LAPIS_LAZULI_GEM;
}