Jump to content

InfectedHearthstone

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

InfectedHearthstone's Achievements

Refugee

Refugee (1/15)

0

Reputation

  1. 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!
  2. After a little more messing around with the localization XML believe I have figured it out.
  3. So one of the few items my friends wanted in the game was Cannabis as a growable crop. The issue I am having is the 3rd and final stage of the crop brings up a description on screen of the item that says "This block can be placed but is of only decorative value." instead of the description i typed into localization txt. Everything else currently works, you plant the seed and it turns into harvestable weed when you punch it but yeah just an eyesore to see that long line of text on the finished product instead of what i have typed in the localization xml. Would greatly appreciate any help cause i feel like if I stare at these xml files any longer i might go insane lol. Edit* I was never able to confirm if the 2nd stage of the crop has the same decorative value description but I am assuming it does, the first stage of the crop when planted says Weed (Seed) as intended so not sure whats wrong with the one or possibly 2 other stages. 2nd Edit* I got locked out of my other account and had to make a new one. Item XML <item name="foodCropWeed"> <property name="HoldType" value="31"/> <property name="CustomIcon" value="plantedHop1"/> <property name="CustomIconTint" value="34,139,34"/> <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="25"/> <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/> </effect_group> </item> Block XML <block name="plantedWeed1"> <property name="Extends" value="cropsGrowingMaster" param1="CustomIcon"/> <property name="CustomIcon" value="plantedBlueberry1"/> <property name="CustomIconTint" value="34,139,34"/> <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"/> <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="34,139,34"/> <property name="CreativeMode" value="None"/> <drop event="Harvest" name="foodCropWeed" count="2" tag="cropHarvest"/> <property name="DowngradeBlock" value="plantedWeed1"/> </block> Recipe XML <recipe name="plantedWeed1" count="1" craft_time="1" craft_exp_gain="0"> <ingredient name="foodCropWeed" count="3"/> </recipe> Localization txt plantedWeed1,blocks,Farming,,,Weed (Seed),,,, plantedWeed1Desc,blocks,Farming,,,Plant this to grow some really good weed!,,,, plantedWeed2,blocks,Farming,,,Weed (Growing),,,, plantedWeed3HarvestPlayer,blocks,Farming,,,Weed (Harvestable),,,, plantedWeed3HarvestPlayerDesc,blocks,Farming,,,Ready to harvest,,,, foodCropWeed,items,Food,,,Weed,,,, foodCropWeedDesc,items,Food,,,Some of the best weed in Navezgane.,,,, I had to use a wheat recipe from 2015 with code that did not work anymore, after about 6 hours of tinkering and editing and 50+ reloads here I am.
×
×
  • Create New...