Here is the completed product using all of the games base files with everything working as intended. This is intended as a cash crop you can sell to the trader or medicine you can grow or turn into a blunt giving 20 health regen and A 30 stamina bonus when consuming. I think both are balanced well atm but you can adjust the price how you see fit. Hopefully this saves a fellow stoner/gardener/modder a lot of time 😀
ITEM XML
<item name="Blunt">
<property name="HoldType" value="3"/>
<property name="CustomIcon" value="apparelCigar"/>
<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="Weight" value="1"/>
<property name="Stacknumber" value="10"/> <!-- STK drink -->
<property name="EconomicValue" value="500"/>
<property name="DisplayType" value="food"/>
<property name="Group" value="Food/Cooking,CFDrink/Cooking,Medical"/>
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="2"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="player_eating"/>
</property>
<effect_group tiered="false" name="Food Tier 0">
<display_value name="dStaminaRegen" value=".5"/>
<display_value name="dEntityDamageBrawling" value="3"/>
<display_value name="dStunResist" value="1"/>
<display_value name="dDuration" value="60"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="20"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar=".foodStaminaBonusAdd" operation="add" value="30"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffBeerDuration" operation="add" value="30"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$buffBeerDuration" operation="set" value="138">
<requirement name="CVarCompare" cvar="$buffBeerDuration" operation="GT" value="138"/></triggered_effect>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffBeer"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
</effect_group>
</item>
<item name="foodCropWeed">
<property name="HoldType" value="31"/>
<property name="CustomIcon" value="plantedHop1"/>
<property name="CustomIconTint" value="84,143,111"/>
<property name="DisplayType" value="food"/>
<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="Material" value="Morganic"/>
<property name="Weight" value="1"/>
<property name="Stacknumber" value="420"/>
<!-- STK resource -->
<property name="EconomicValue" value="500"/>
<property name="EconomicBundleSize" value="5"/>
<property name="CraftingIngredientTime" value="10"/>
<!-- 14 is large round hold -->
<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_eating"/>
</property>
<property name="Group" value="Food/Cooking,CFFood/Cooking"/> <!-- ,Medicine -->
<effect_group tiered="false" name="Food Tier 0">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="5"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="5"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
</effect_group>
</item>
BLOCKS XML
<block name="plantedWeed1">
<property name="Extends" value="cropsGrowingMaster" param1="CustomIcon"/>
<property name="CustomIcon" value="plantedBlueberry1"/>
<property name="CustomIconTint" value="222,184,135"/>
<property name="CreativeMode" value="Player"/>
<property name="Texture" value="447"/>
<property name="PlantGrowing.Next" value="plantedWeed2"/>
<property name="Group" value="Food/Cooking"/>
<drop event="Destroy" name="plantedWeed1" count="1"/>
</block>
<block name="plantedWeed2">
<property name="Extends" value="cropsGrowingMaster" param1="CustomIcon"/>
<property name="CustomIcon" value="plantedHop1"/>
<property name="CustomIconTint" value="34,139,34"/>
<property name="CreativeMode" value="None"/>
<property name="CustomIcon" value="plantedHop1"/>
<property name="Texture" value="448"/>
<property name="PlantGrowing.Next" value="plantedWeed3HarvestPlayer"/>
<drop event="Destroy" name="plantedWeed1" count="1"/>
</block>
<block name="plantedWeed3Harvest">
<property name="Extends" value="cropsHarvestableMaster"/>
<property name="Texture" value="449"/>
<property name="CustomIcon" value="plantedHop3Harvest"/>
<property name="CustomIconTint" value="84,143,111"/>
<drop event="Harvest" name="foodCropWeed" count="2" tag="wildCropsHarvest"/>
</block>
<block name="plantedWeed3HarvestPlayer">
<property name="Extends" value="cropsHarvestableMaster" param1="CustomIcon"/>
<property name="DescriptionKey" value="plantedWeed3HarvestDesc"/>
<property name="CustomIcon" value="plantedHop3Harvest"/>
<property name="CustomIconTint" value="84,143,111"/>
<property name="CreativeMode" value="None"/>
<drop event="Harvest" name="foodCropWeed" count="2" tag="cropHarvest"/>
<property name="DowngradeBlock" value="plantedWeed1"/>
</block>
LOCALIZATION TXT
plantedWeed1,blocks,Farming,,,Weed (Seed),,,,
plantedWeed1Desc,blocks,Farming,,,Plant this to grow some really good weed!,,,,
plantedWeed2,blocks,Farming,,,Weed (Growing),,,,
plantedWeed3HarvestPlayerDesc,blocks,Farming,,,Weed (Ready to harvest),,,,
plantedWeed3HarvestDesc,blocks,Farming,,,Weed (Ready to harvest),,,,
foodCropWeed,items,Food,,,Weed,,,,
BluntDesc,items,Food,,,This is gonna get you really high...,,,,
foodCropWeedDesc,items,Food,,,Some of the best weed in Navezgane. Can be crafted into blunts with paper.,,,,
RECIPE XML
<recipe name="plantedWeed1" count="1" craft_time="1" craft_exp_gain="0">
<ingredient name="foodCropWeed" count="3"/>
</recipe>
<recipe name="Blunt" count="1" craft_time="1" craft_exp_gain="0">
<ingredient name="foodCropWeed" count="3"/>
<ingredient name="resourcePaper" count="1"/>
</recipe>
ENJOY!