Yeah that's definitely not needed and just repetitious and it was due to the fact I was getting desperate and I was just going around to forum posts just implementing things people were saying would fix it, and I guess I read it wrong or something. But I have tried it without that and just the if(entity instanceof EntityChicken) but that still didn't work at all.