Does your mod already have this?
<property name = "Class" value = "Forge" />
or any other type of workstation you have selected.
You have added the ui_display.xml file, to add the list of resources that your workstation will do.
You also have to add XUi Folder with the xui.xml files and windows.xml with the output, tools, fuel that it will have.
yes. it does.
<block name="WorkingWoodBuringStove">
<property name="Class" value="Campfire"/>
<property name="Material" value="Mmetal"/>
<property name="MaxDamage" value="350"/>
<property name="StabilitySupport" value="true"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="Entities/Furniture/woodBurningStovePrefab"/> <property name="Place" value="TowardsPlacerInverted"/>
<property name="CustomIcon" value="cntWoodBurningStove"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Collide" value="movement,melee,bullet,arrow,rocket"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="ParticleName" value="campfire"/>
<property name="ParticleOffset" value="0.5,0.5,0.5"/>
<property name="Stacknumber" value="1"/>
<property name="HeatMapStrength" value="1"/>
<property name="HeatMapTime" value="1200"/>
<property name="HeatMapFrequency" value="25"/>
<property name="BuffsWhenWalkedOn" value="buffBurningEnvironment"/>
<property name="ActiveRadiusEffects" value="buffCampfireAOE(4)"/>
<property class="Workstation">
<property name="Modules" value="tools,output,fuel,input"/>
<property name="Collide" value="melee,bullet,arrow,rocket"/>
<property name="CraftingAreaRecipes" value="campfire"/>
</property>
<property name="WorkstationIcon" value="ui_game_symbol_campfire" />
<property name="CraftActionName" value="lblContextActionCook" />
<property name="CraftIcon" value="ui_game_symbol_spatula" />
<property name="OpenSound" value="campfire_open" />
<property name="CloseSound" value="campfire_close" />
<property name="CraftSound" value="campfire_cook_click" />
<property name="CraftCompleteSound" value="campfire_complete_item" />
<property name="WorkstationJournalTip" value="campfireTip" />
<property class="RepairItems">
<property name="resourceScrapIron" value="3"/>
</property>
<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceMechanicalParts" count="1,2" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceMetalPipe" count="0,1" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceScrapIron" count="4,8" tag="salvageHarvest"/>
<drop event="Destroy" name="resourceScrapIron" count="2,4" prob="1"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<property name="Group" value="Food/Cooking,Basics,Building"/>
<property name="DescriptionKey" value="campfireDesc"/>
<property name="EconomicValue" value="5"/>
<property name="EconomicBundleSize" value="1"/>
<property name="SellableToTrader" value="false"/>
<property name="FilterTags" value="fdecor,fother,ffurniture"/>
<property name="SortOrder1" value="70i0"/>
</block>
it works if i make the block the "cntCharcoalGrillClosed" it works perfectly. but the stove doesn't. the only thing i can think of is that the grill is a container and the stove is not. but i don't know how to make the stove a container.
This code works for the grill
Code:
<block name="WorkingCharcoalGrill">
<property name="Class" value="Campfire"/>
<property name="Material" value="Mmetal"/>
<property name="MaxDamage" value="100"/>
<property name="StabilitySupport" value="true"/>
<property name="Shape" value="ModelEntity"/>
<property name="Model" value="#Entities/LootContainers?Grill_Simple_ClosedPrefab.prefab"/>
<property name="CustomIcon" value="cntCharcoalGrillClosed"/>
<property name="ImposterDontBlock" value="true"/>
<property name="Collide" value="movement,melee,bullet,arrow,rocket"/>
<property name="IsTerrainDecoration" value="true"/>
<property name="ParticleName" value="campfire"/>
<property name="ParticleOffset" value="0.5,0.8,0.5"/>
<property name="Stacknumber" value="1"/>
<property name="HeatMapStrength" value="1"/>
<property name="HeatMapTime" value="1200"/>
<property name="HeatMapFrequency" value="25"/>
<property name="BuffsWhenWalkedOn" value="buffBurningEnvironment"/>
<property name="ActiveRadiusEffects" value="buffCampfireAOE(2)"/>
<property class="Workstation">
<property name="Modules" value="tools,output,fuel,input"/>
<property name="Collide" value="melee,bullet,arrow,rocket"/>
<property name="CraftingAreaRecipes" value="campfire"/>
</property>
<property name="WorkstationIcon" value="ui_game_symbol_campfire" />
<property name="CraftActionName" value="lblContextActionCook" />
<property name="CraftIcon" value="ui_game_symbol_spatula" />
<property name="OpenSound" value="campfire_open" />
<property name="CloseSound" value="campfire_close" />
<property name="CraftSound" value="campfire_cook_click" />
<property name="CraftCompleteSound" value="campfire_complete_item" />
<property name="WorkstationJournalTip" value="campfireTip" />
<property class="RepairItems">
<property name="resourceScrapIron" value="3"/>
</property>
<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
<drop event="Harvest" name="resourceMechanicalParts" count="1,2" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceMetalPipe" count="0,1" tag="salvageHarvest"/>
<drop event="Harvest" name="resourceScrapIron" count="4,8" tag="salvageHarvest"/>
<drop event="Destroy" name="resourceScrapIron" count="2,4" prob="1"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<property name="Group" value="Food/Cooking,Basics,Building"/>
<property name="DescriptionKey" value="campfireDesc"/>
<property name="EconomicValue" value="5"/>
<property name="EconomicBundleSize" value="1"/>
<property name="SellableToTrader" value="false"/>
<property name="FilterTags" value="fdecor,fother,ffurniture"/>
<property name="SortOrder1" value="70i0"/>
</block>