Jump to content

Modlet for making food recipes


Recommended Posts

I'd like to make my own food recipes and I could (maybe) manage to do it by fiddling with game files, but I'd much rather learn to do it in a modlet form if possible. So, if anyone has any tips on how to do it I'd appreciate that very much... a simple example (like 3 ingredients soup would be awesome - meat, water plus a herb maybe).

Link to comment
Share on other sites



		<Name value="Simple Soup" />
		<Description value="Adds simple soup" />
		<Author value="Author goes here" />
		<Version value="VERSION NUMBER HERE" />


<append xpath="/recipes">
  <recipe name="foodSimpleSoup" count="1" craft_time="60" craft_area="campfire" craft_tool="toolCookingPot">
	<ingredient name="resourceRawMeat" count="5"/>
	<ingredient name="drinkJarBoiledWater" count="1"/>
	<ingredient name="resourceCropChrysanthemumPlant" count="1"/>


<append xpath="/items">
<item name="foodSimpleSoup">
	<property name="Tags" value="food"/>
	<property name="HoldType" value="31"/>
	<property name="DisplayType" value="foodWater"/>
	<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
	<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
	<property name="Material" value="Morganic"/>
	<property name="Stacknumber" value="10"/> <!-- STK food -->
	<property name="EconomicValue" value="134"/>
	<property class="Action0">
		<property name="Class" value="Eat"/>
		<property name="Delay" value="1.0"/>
		<property name="Use_time" value="..."/>
		<property name="Sound_start" value="player_drinking"/>
		<!-- jar from cooking food <property name="Create_item" value="drinkJarEmpty"/> -->
	<property name="Group" value="Food/Cooking,CFFood/Cooking"/>

	<effect_group tiered="false" name="Food Tier 2">
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="20"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="50"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="25"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar=".foodStaminaBonusAdd" operation="add" value="20"/>
		<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>

Folder Structure for mod:






That's a VERY basic example, but should get you started - The easiest way to learn simple modding (like adding a food), is to find a similar item in the game files, and just copy it, changing what you need to.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...