How to Make Animal Pen in RimWorld (1.6) | Pen Planner + Code-Backed Build Tool
Build Animal Pens That Actually Work in RimWorld 1.6
Quick guides to keep your animals fed and fenced in.
Starter Pen Layout
Fence + Gate + Pen Marker + Hay Storage
- Build fence or wall loopThe local
PenMarkerdef only works in an enclosed area, so start with a closed perimeter. - Add one gate or doorThe game alert text explicitly says a pen needs a door or gate to admit animals.
- Place pen marker inside
CompProperties_AnimalPenMarkeradds the Food, Animals, and Auto-cut tabs to this building. - Rope animals to the penHandlers use the
RopeToPenjob to bring pen animals to the assigned marker.
Pen Marker
Hay Buffer
Fast answer: enclose an area, place a pen marker, rope animals in, then watch Nutrition growth versus Nutrition consumption. If consumption is higher, your pen is already on borrowed time.
Fence: 40 HP, 70 work, PassThroughOnly, path cost 80, and tagged asisFence=true.- ■Wall: 300 HP, 135 work,
Impassable, andholdsRoof=truefor real barns and flyer-proof coops.
Gate: 20 HP, 500 work, open speed 1.15, holdsRoof=false, and counts as the access point for a pen.
Dandelions: 0.25 nutrition per plant, 2.5 grow days, low fertility demand, great in warm pens.
Haygrass: 18 hay per tile after 7 grow days. Reliable winter reserve crop.
Hay: 0.05 nutrition each, stack limit 200, starts rotting after 60 days if badly stored.
- ⚠Broken fence or held-open door keeps the pen from staying enclosed.
- ⚠Wrong marker or no handler means the
RopeToPenjob never starts. - ⚠Hungry animals need more grazing, hauled hay, or a smaller herd.
Temperate Pasture
Big fenced graze pen, dandelions inside, and a small roofed hay patch near the gate.
Desert Barn
Compact walled yard, more hauled hay, less trust in natural grass.
Tundra Shelter
Roofed walls, animal flap, and winter math done before the first snow.
PenMarker def exposes ITab_PenFood, ITab_PenAnimals, and ITab_PenAutoCut.Hay nutrition is 0.05 each.
Starter rule: keep breeders small, split grow-out animals into a second pen, and let the marker’s Food tab tell you when herd growth already outran grazing.
- ⚠Chickens and geese have flying animation data in 1.6. Use walls and a roofed coop.
- ⚠Fence-blocked animals cannot open normal doors unless roped;
AnimalFlapis the exception. - ⚠If the pen is unenclosed, tame roamers still wander and handlers must keep re-roping them.
Quick answer
If you only need the 90-second version: fence or wall a loop, add a gate, place a pen marker inside, and rope your farm animals to it. Then open the pen marker Food tab and compare Nutrition growth against Nutrition consumption.
- Warm maps: let animals graze and seed dandelions inside the pen.
- Cold maps: build a roofed barn, store hay, and assume outdoor growth goes near zero in winter.
- 1.6 birds: chickens, ducks, and geese are the first animals to question your fence budget.
What the local game data confirms
| Thing | Local 1.6 fact | Why it matters |
|---|---|---|
| Pen marker | 100 HP, 600 work, Food + Animals + Auto-cut tabs | This is the pen dashboard, not just a label post. |
| Fence | 40 HP, 70 work, PassThroughOnly, isFence=true | Cheap early pen boundary, but not roof support. |
| Fence gate | 20 HP, 500 work, open speed 1.15, holdsRoof=false | Good access point, bad roof support, weak in raids. |
| Animal flap | roamerCanOpen=true, 850 work, 20 HP | Use it for barns because pen animals can pass while the room still stays sheltered. |
| Wall | 300 HP, 135 work, Impassable, holdsRoof=true | Best answer for predators, winter barns, and flying birds. |
| Haygrass | 18 hay yield after 7 days | Main winter fodder crop when grazing will fail. |
| Dandelions | 0.25 nutrition, 2.5 grow days, low fertility minimum | Excellent pen filler for warm grazing maps. |
| Hay | 0.05 nutrition, stack 200, starts rotting after 60 days | Turns your winter plan into something you can count. |
Why animals escape in 1.6
The local source and defs give three concrete failure modes that matter more than vague “AI bug” theories:
- Fence-blocked logic is real.
PathGrids.xmldefinesFenceBlocked, andBuilding_Door.csrefuses normal door use for fence-blocked animals unless they are roped or the building allows roamers to open it. - Animal flaps are special on purpose. The
AnimalFlapdef setsroamerCanOpen=true, which is why barn flaps work for penned animals while normal doors do not. - Unenclosed pens still wander. The local
ThinkTreeDefs/Animal.xmlnote says tame roamers wander near a suitable pen marker 10% of the time when unenclosed.
Translation: if the pen is open, your solution is not to keep re-roping animals forever. The solution is to finish the enclosure.
Representative herd pressure from local defs
| Animal | Base hunger rate | Containment note |
|---|---|---|
| Chicken | 0.14 | Has flight time + flying animation data, so fence pens are risky. |
| Goose | 0.28 | Also has flying animation data and will punish lazy coop design. |
| Goat | 0.225 | Low pressure grazer, good for smaller pens. |
| Cow | 0.535 | Heavy grazer; do winter math before herd growth spikes. |
| Horse | 0.535 | Same hunger base as cows, but usually worth keeping for caravans. |
| Muffalo | 0.535 | Cold-proof pack animal; still expensive to feed when snow arrives. |
These are local Core-def hunger-rate values. For exact daily feed in your colony, trust the pen marker’s own growth and consumption numbers first.
Why does the page ask for pen-marker values instead of guessing exact nutrition from species counts?
When should I replace fences with walls?
What if colonists still refuse to rope animals to the pen?
Local files used
Built from local RimWorld 1.6.4633 data in Buildings_Structure.xml, Buildings_Misc.xml, Jobs_Work.xml, ThinkTreeDefs/Animal.xml, Races_Animal_ChickenGroup.xml, Races_Animal_CowGroup.xml, Plants_Cultivated_Farm.xml, Plants_Wild_Temperate.xml, Items_Resource_RawPlant.xml, PathGrids.xml, and Building_Door.cs.