• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

No item block, but i have oO ?

Dbzes

Refugee
Hi all,

I have a problem and i searched during 2 day....

Capture d'écran 2023-12-13 191731.png

but I have the block in recipes.xml

Capture d'écran 2023-12-13 191755.png

Do you have a idea ?

Thank you very much !

 
Last edited by a moderator:
Hi all,

I have a problem and i searched during 2 day....

View attachment 29716

but I have the block in recipes.xml

View attachment 29717

Do you have a idea ?

Thank you very much !


It needs to be defined in the items file or the blocks file as an object.  If you do have it, check the name as you might have it incorrectly in one of the two files.

For example, just putting this in my recipes file will cause issues

        <recipe name="foodTunaNoddleCasserol" count="1" craft_area="campfire" craft_tool="toolCookingPot" tags="perkMasterChef,learnable">
            <ingredient name="foodCanTuna" count="1"/>
            <ingredient name="foodCanPasta" count="1"/>
            <ingredient name="foodCropMushrooms" count="1"/>
            <ingredient name="foodCornMeal" count="1"/>
            <ingredient name="drinkJarBoiledWater" count="1"/>
        </recipe>    


unless I have this in the items file

Code:
        <item name="foodTunaNoddleCasserol">
            <property name="Tags" value="food"/>
            <property name="HoldType" value="31"/>
            <property name="DisplayType" value="food"/>
            <property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
            <property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
            <property name="Material" value="Mplants"/>
            <property name="CustomIcon" value="foodSpaghetti"/>
            <property name="CustomIconTint" value="ff0000"/>
            <property name="Material" value="Mplants"/>
            <property name="Stacknumber" value="10"/> <!-- STK resource -->
            <property name="EconomicValue" value="250"/>
            <property name="EconomicBundleSize" value="1"/>
            <property name="CraftingIngredientTime" value="10"/>
            <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"/>
            <effect_group tiered="false" name="Food Tier 2">
                <triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="40"/>
                <triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="15"/>
                <triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar=".foodStaminaBonusAdd" operation="add" value="20"/>
                <triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
            </effect_group>
        </item>  
 
Back
Top