I am trying to assign a new scrap product (Indica Seeds) to a custom item (Indica Blunt). All goes well & the scrapping works with vanilla materials.xml for glass, until I change the forge_category to the desired new scrap product. The initial code is the following:
recipes.xml :
<configs>
<append xpath="/recipes">
<recipe name="Indica Blunt" count="1" craft_area="Weed Workstation" craft_time="0" tooltip="ttScrapMetalBrass" always_unlocked="true" tags="salvageScrap">
<wildcard_forge_category />
<ingredient name="Indica Bud" count="2"/>
<ingredient name="Blunt Wrap" count="1"/>
</recipe>
</append>
</configs>
items.xml:
<configs>
<append xpath="/items">
<item name="Indica Blunt">
<property name="CustomIcon" value="BlackForestBlunt"/>
<property name="Tags" value="drinks,foodSkill"/>
<property name="HoldType" value="3"/>
<property name="Meshfile" value="@:Other/Items/Misc/sackPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mindica"/>
<property name="Weight" value="10"/>
<property name="Stacknumber" value="10"/> <!-- STK resource -->
<property name="EconomicValue" value="500"/>
<property name="UnlockedBy" value="craftingFood"/><!-- perkMasterChef,drinkJarGrandpasMoonshineSchematic, -->
<property name="DisplayType" value="waterGrandpasMoonshine"/>
<property name="Group" value="Food/Cooking,CFDrink/Cooking"/>
</item>
<item name="Indica Seeds">
<property name="CustomIcon" value="BlackForestSeeds"/>
<property name="HoldType" value="45"/>
<property name="Tags" value="dukes"/>
<property name="Meshfile" value="@:Other/Items/Misc/sackPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mindica"/>
<property name="FuelValue" value="1"/>
<property name="Weight" value="1"/>
<property name="Stacknumber" value="100"/>
<property name="EconomicValue" value="100"/>
<property name="Group" value="Resources"/>
</item>
</append>
</configs>
(initial) materials.xml:
<configs>
<append xpath="/materials">
<material id="Mindica">
<property value="glass" name="damage_category"/>
<property value="glass" name="surface_category"/>
<property value="glass" name="forge_category"/>
<property value="1" name="Hardness" type="float"/>
<property value="1" name="lightopacity"/>
<property value="metal" name="stepsound"/>
<property value="20" name="stability_glue"/>
<property value="5" name="Mass" type="int"/>
<property value="true" name="StabilitySupport"/>
<property value="1" name="MaxDamage"/>
<property value="2" name="Experience"/>
</material>
</append>
</configs>
As I said, everything works well up to this point - the Indica Blunt is able to scrap into glass. The issue occurs when I try to change the forge_category so that the Indica Blunt instead scraps into Indica Seeds, like so:
(new & problematic) materials.xml :
<configs>
<append xpath="/materials">
<material id="Mindica">
<property value="glass" name="damage_category"/>
<property value="glass" name="surface_category"/>
<property value="Indica Seeds" name="forge_category"/>
<property value="1" name="Hardness" type="float"/>
<property value="1" name="lightopacity"/>
<property value="metal" name="stepsound"/>
<property value="20" name="stability_glue"/>
<property value="5" name="Mass" type="int"/>
<property value="true" name="StabilitySupport"/>
<property value="1" name="MaxDamage"/>
<property value="2" name="Experience"/>
</material>
</append>
</configs>
After I make the forge_category change to value="Indica Seeds" the option to scrap the Indica Blunt entirely disappears.
What am I doing wrong?
recipes.xml :
<configs>
<append xpath="/recipes">
<recipe name="Indica Blunt" count="1" craft_area="Weed Workstation" craft_time="0" tooltip="ttScrapMetalBrass" always_unlocked="true" tags="salvageScrap">
<wildcard_forge_category />
<ingredient name="Indica Bud" count="2"/>
<ingredient name="Blunt Wrap" count="1"/>
</recipe>
</append>
</configs>
items.xml:
<configs>
<append xpath="/items">
<item name="Indica Blunt">
<property name="CustomIcon" value="BlackForestBlunt"/>
<property name="Tags" value="drinks,foodSkill"/>
<property name="HoldType" value="3"/>
<property name="Meshfile" value="@:Other/Items/Misc/sackPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mindica"/>
<property name="Weight" value="10"/>
<property name="Stacknumber" value="10"/> <!-- STK resource -->
<property name="EconomicValue" value="500"/>
<property name="UnlockedBy" value="craftingFood"/><!-- perkMasterChef,drinkJarGrandpasMoonshineSchematic, -->
<property name="DisplayType" value="waterGrandpasMoonshine"/>
<property name="Group" value="Food/Cooking,CFDrink/Cooking"/>
</item>
<item name="Indica Seeds">
<property name="CustomIcon" value="BlackForestSeeds"/>
<property name="HoldType" value="45"/>
<property name="Tags" value="dukes"/>
<property name="Meshfile" value="@:Other/Items/Misc/sackPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mindica"/>
<property name="FuelValue" value="1"/>
<property name="Weight" value="1"/>
<property name="Stacknumber" value="100"/>
<property name="EconomicValue" value="100"/>
<property name="Group" value="Resources"/>
</item>
</append>
</configs>
(initial) materials.xml:
<configs>
<append xpath="/materials">
<material id="Mindica">
<property value="glass" name="damage_category"/>
<property value="glass" name="surface_category"/>
<property value="glass" name="forge_category"/>
<property value="1" name="Hardness" type="float"/>
<property value="1" name="lightopacity"/>
<property value="metal" name="stepsound"/>
<property value="20" name="stability_glue"/>
<property value="5" name="Mass" type="int"/>
<property value="true" name="StabilitySupport"/>
<property value="1" name="MaxDamage"/>
<property value="2" name="Experience"/>
</material>
</append>
</configs>
As I said, everything works well up to this point - the Indica Blunt is able to scrap into glass. The issue occurs when I try to change the forge_category so that the Indica Blunt instead scraps into Indica Seeds, like so:
(new & problematic) materials.xml :
<configs>
<append xpath="/materials">
<material id="Mindica">
<property value="glass" name="damage_category"/>
<property value="glass" name="surface_category"/>
<property value="Indica Seeds" name="forge_category"/>
<property value="1" name="Hardness" type="float"/>
<property value="1" name="lightopacity"/>
<property value="metal" name="stepsound"/>
<property value="20" name="stability_glue"/>
<property value="5" name="Mass" type="int"/>
<property value="true" name="StabilitySupport"/>
<property value="1" name="MaxDamage"/>
<property value="2" name="Experience"/>
</material>
</append>
</configs>
After I make the forge_category change to value="Indica Seeds" the option to scrap the Indica Blunt entirely disappears.
What am I doing wrong?