private static final Set<Item> TEMPTATION_ITEMS = Sets.newHashSet(Items.CARROT, Items.POTATO, Items.BEETROOT);
protected void initEntityAI()
{
this.tasks.addTask(4, new EntityAITempt(this, 1.2D, false, TEMPTATION_ITEMS));
}
Just to clarify, I did not make a custom entity. I'm trying to tempt vanilla animals.
With this in mind, here is a snippet of the code from the EntityPig class. To add my item to TEMPTATION_ITEMS, will I need to create myself a new EntityPig class with my item inside the set? Or how do I go about modifying this?