Jump to content

No item block, but i have oO ?


Dbzes

Recommended Posts

1 hour ago, Dbzes said:

Hi all,

 

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

 

Capturedcran2023-12-13191731.png.cc49404863737b065d61eee97c754a59.png

 

but I have the block in recipes.xml

 

Capturedcran2023-12-13191755.png.5702de2c0799d2ed38edab0377b7233e.png

 

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

 

        <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>   

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...