Craftable Pawn Framework
Ever wanted to make your own robot race, but didn’t have the knowledge for the C# part? Craftable Pawn Framework is a mod that does all the C# work for you! (minimal XML knowledge required)
Works with both animals and humanlike pawns!
How do I get it working for my own race?
Simply install this mod, and make sure your own mod requires it as a dependency and get started!
1. Make any type of pawn craftable!
- Create your race in XML, and the needed PawnKind.xml
- Create an item with CompProperties_Hatcher as a comp.
<comp> <li Class="CompProperties_Hatcher"> <hatcherDaystoHatch>0.5</hatcherDaystoHatch> <!–0.0001 is instant–> <hatcherPawn>PawnKindDefName</hatcherPawn> <!–Your PawnKind defName goes in here! –> </li> </comp>
- Make a recipe for this item, which can be done like any regular item.
- That should be all! If you have any questions feel free to ask!
2. Set the default skill for your PawnKind!
Add the following code to your PawnKind.xml to get it to work.
3. More features are being worked on!
If you need any help feel free to message me on Discord! ISOREX#8779. Of course the Rimworld Discord is also a great place to ask your questions.