• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Allowing Players To Cook on Grills and Gas Ovens

TehAgent

Refugee
Alright...its late and I am *almost* there but not quite.

Ive created new blocks our of the campfire, charcoal grill, and the gas oven. After some struggling, I figured out how to get the recipes to show up in the dialog when you interact with the grill/oven. The problem is that it doesnt seem to recognize the new blocks as items that are a 'campfire'.

I literally took the campfire block and copied it then added the models to the oven and grill to the model field. Then I created new copy-pastes of the campfire in the XUI. THEN I also created copy-pastes of the campfire stuff in the ui_display file.

Despite being literal copy-pastes of the campfire entries with changed names (to reflect the new blocks) it wont let me cook on them. It acts like its not a campfire even though it says 'food' at the top and shows the proper icons. The recipes for a campfire dont populate like they should - the list is blank until you start typing in 'bread' or whatever. Then it shows up but acts like its not a campfire (which I mean its not but it should be acting as one)

AS I TYPED this I thought: maybe I need to add the new blocks to the "craft area" field in recipes.xml

I guess Ill post this anyway and then post again if thats the problem LOL.
 

Attachments

  • 7 Days to Die Screenshot 2025.09.14 - 23.30.32.93.png
    7 Days to Die Screenshot 2025.09.14 - 23.30.32.93.png
    2.1 MB · Views: 12
Alright...its late and I am *almost* there but not quite.

Ive created new blocks our of the campfire, charcoal grill, and the gas oven. After some struggling, I figured out how to get the recipes to show up in the dialog when you interact with the grill/oven. The problem is that it doesnt seem to recognize the new blocks as items that are a 'campfire'.

I literally took the campfire block and copied it then added the models to the oven and grill to the model field. Then I created new copy-pastes of the campfire in the XUI. THEN I also created copy-pastes of the campfire stuff in the ui_display file.

Despite being literal copy-pastes of the campfire entries with changed names (to reflect the new blocks) it wont let me cook on them. It acts like its not a campfire even though it says 'food' at the top and shows the proper icons. The recipes for a campfire dont populate like they should - the list is blank until you start typing in 'bread' or whatever. Then it shows up but acts like its not a campfire (which I mean its not but it should be acting as one)

AS I TYPED this I thought: maybe I need to add the new blocks to the "craft area" field in recipes.xml

I guess Ill post this anyway and then post again if thats the problem LOL.

Hi TechAgent

It's exactly as you're thinking, you need to change the crafting area in the recipes to match your new cooking blocks.
You also need to change this in blocks.xml or if you don't have it, add it.
I have it in my cooking mod and it works fine:

from this: <property name="CraftingAreaRecipes" value="campfire"/>
to this: <property name="CraftingAreaRecipes" value="Name of your cooking block"/>

Regards
Gouki
 
Hi TechAgent

It's exactly as you're thinking, you need to change the crafting area in the recipes to match your new cooking blocks.
You also need to change this in blocks.xml or if you don't have it, add it.
I have it in my cooking mod and it works fine:

from this: <property name="CraftingAreaRecipes" value="campfire"/>
to this: <property name="CraftingAreaRecipes" value="Name of your cooking block"/>

Regards
Gouki

Thank you; I have already done that though. I missed one line I needed: <property name="CraftingAreaRecipes" value="campfire"/>

*I think*

I still need to test it; I just stopped what I was doing a couple of hours ago to add that. I will post back if that was the problem, but Im pretty sure it was. Im still rusty from Modding A14-16 LMAO. And a lot has changed since then.
 
Back
Top