// Management · RimWorld Mod

Animal Food Preference

Animal Food Preference mod preview for RimWorld

Tired of your pigs leaving raider corpses to rot while they feast on your kibble?

Tired of your pigs leaving raider corpses to rot while they feast on your kibble? Want your cows to go munch on that grass instead of your hay it's right there just go eat the growing grass!? Animal Food Preference (AFP) makes your animals prioritize foods that work best for you!

In vanilla, animals take whatever valid food is closest. With AFP, they will use a tier list to select what food is best, starting with renewable foods (grass, dandelions) and moving up to those delicious renewable raider corpses, hay, kibble, then meals from worst to best, etc. They still have a distance factor so they are less likely to run across the map for something marginally better.

Vanilla food priority:

AFP food priority:

Vanilla meal priority:

AFP meal priority:


And it's configurable!


Works with Assign Animal Food.

I have focused a lot of time to profile it and make Animal Food Preference consume as little overhead as possible; I've tested it with 100+ animal herds without any slowdown compared to vanilla.

Note, animals still reserve stacks of food, so sometimes animals go for less-preferred foods if another animal is already eating what they want.

Source code:
Animal Food Preference GitHub source code
AFP is under the MIT license: you are free to use, modify and distribute copies of the software provided the original copyright and license notice is included. This mod was created with the help of AI coding tools.