Don't Starve Together

Don't Starve Together

Cookbook
Benzoquinone  [developer] 30 Jul, 2020 @ 9:12pm
Mod Compatibility
For modders:

If your recipe is too restrictive, my mod won't be able to guess the ingredients. If you could just add an index called "ingredients" and then make a table to list out the prefabs needed (you do not need 4 prefabs, just enough that will pass the test function). Recipes are too restrictive if you use many names (without 'or's especially) or many '==' number.

mod_food.ingredients = { "prefabA" } (the same prefab needed more than once must be listed more than once)

Ideally, the above table is in your mod's version of the "preparedfoods" table but you can technically add that into the cooking lua recipe table too.

For modded characters, if you want some other combination of liked and disliked foodtype please set up the following in you character's prefab:

inst.components.eater.foodtype_preferences = { favourite = foodtype or {table of foodtypes}, disliked = foodtype or {table of foodtypes}}

A character does not need to have any likes and/or dislikes.

For new tags used in recipes, please make an art asset for it or you will get a question mark under your modded item.

For foods with buffs, if you want the effect to be listed in the mod please use the below:

mod_food.buff_details =

for buffs with which you have a nice little image for (should be roughly 64x64) use:

{ buff_name = NAME OF IMAGE, hover = TEXT FOR IMAGE HOVER, descrip = DESCRIPTION NEXT TO IMAGE }

for buffs that you only want text for please use:

{ text_only = TEXT HERE }

Everything entered in the above should be strings.

If you want your recipe to have your name at the bottom of the recipe page please add and index called artist in the recipe's table.

mod_food.artist = NAME

Hope that helps.
Last edited by Benzoquinone; 31 Jul, 2020 @ 9:02pm
< >
Showing 1-4 of 4 comments
Aria~ムキ 1 Aug, 2020 @ 8:39pm 
The recent update you done to the mod seems to have made it incompatible (Server Crash) with the popular Health Bars Mod https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=375859599
Benzoquinone  [developer] 5 Aug, 2020 @ 7:49pm 
That is a popular mod, I will try to look into it but no guarantees about all mods working nicely together sadly.
DJoke 5 Aug, 2020 @ 10:05pm 
Here is the error log that I use "Health Info" with it.
Hope it can be fixed, thanks a lot!


[string "../mods/workshop-375859599/modmain.lua"]:328: attempt to call global 'ShowErrorInfo' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-375859599/modmain.lua(328,1) in function 'CheckInstHasHealth'
../mods/workshop-375859599/modmain.lua(404,1)
=(tail call) ?
=[C] in function 'xpcall'
scripts/mods.lua(162,1) in function 'prefabpostinitany'
scripts/mainfunctions.lua(280,1)
=[C] in function 'SpawnPrefab'
scripts/mainfunctions.lua(306,1) in function '_SpawnPrefab'
../mods/workshop-1378549454/gemscripts/tools/specialprefabspawner.lua(45,1) in function 'SpawnPrefab'
../mods/workshop-2182831111/scripts/components/recipebookmaster.lua(69,1) in function 'GetDebugDetails'
../mods/workshop-2182831111/scripts/components/recipebookmaster.lua(140,1) in function 'DoSomethingStupid'
../mods/workshop-2182831111/scripts/components/recipebookmaster.lua(122,1) in function '_ctor'
scripts/class.lua(181,1) in function 'cmp'
scripts/entityscript.lua(533,1) in function 'AddComponent'
../mods/workshop-2182831111/post_initialise/post_inits.lua(373,1) in function 'fn'
scripts/modutil.lua(419,1)
=(tail call) ?
=[C] in function 'xpcall'
scripts/mods.lua(162,1) in function 'prefabpostinitany'
scripts/mainfunctions.lua(280,1)
IshvaMal 8 Aug, 2020 @ 3:40pm 
Clients crash when entering server with this mod and Myth Characters mod...
< >
Showing 1-4 of 4 comments
Per page: 1530 50