@SubscribeEvent
public static void onSheepJoinWorld(EntityJoinWorldEvent event) {
Entity entity = event.getEntity();
if (entity instanceof SheepEntity && !(entity instanceof RubySheepEntity)) {
SheepEntity sheepEntity = (SheepEntity) entity;
sheepEntity.goalSelector.addGoal(2, new BreedGoal(sheepEntity, 1.0f, RubySheepEntity.class));
}
}
Here's the code for the event. The problem might be that I set the priority to be the same as the regular BreedGoal.