Search the Community
Showing results for tags 'food'.
-
Multiple character quotes mention monster meat being full of hair which indeed would make it pretty unpalatable, and the hairs are still there even after the meat is cooked. But I’m not sure what biological or evolutionary purpose this would serve; if it were to deter predators then it wouldn’t explain why spiders, hounds, pigs, and Bearger readily eat it. It doesn’t make much sense for hair to grow inward into muscle tissue, and when it does, well, you have an ingrown hair that freakin’ hurts to pull out. Furthermore, when hair in real life is burnt it tends to shrivel up and become dry, flaky, and brittle, since hair is made of keratin which readily falls apart in the presence of high temperature, and wouldn’t this apply to monster meat hair too? The only thing that comes to mind is that maybe these are simply intracellular keratin filaments on steroids, but I’m still unsure what purpose these would serve, though it would make sense why it turns pigs into werepigs (which kind of look like wild boars or warthogs tbh).
- 2 replies
-
- monster meat
- food
-
(and 1 more)
Tagged with:
-
I've looked through Wigfrid's code and tried that, to no luck, I've looked all over the forums and everything I tried hasn't worked, I tried to look online for the tags for the food groups to re-try the Wigfrid technique, to find that I don't know what the tags are for the food groups or how to find them, I've come to the conclusion I'm out of my depths (no pun intended) and perhaps someone else might have the right f-eel-ing (pun entirely intended) on how I can accomplish what I am trying to accomplish It's rather simple really, all I want is a way to make it so my character will not eat any fish related item, so if you know how to, please, help me, much thanks!
-
Food Invisible in Crock Pots
ScrewdriverLad posted a topic in [Don't Starve Together] Mods and Tools
Hey there, I'm working on a mod right now that will add a custom food item, internally called curry. It's technically fully functional except for one problem: It doesn't appear in the crock pot. I've tried all sorts of fixes, but I'm not sure I understand things. I've also found forum posts on it, like this one, but I don't understand it well enough to really implement it. Could someone help me figure this out, or at least explain the fix to me? -
IMPORTANT: The code should work in both DS and DST, but it was primarily written for DST, so I will leave a disclaimer here saying it might not be 100% the same code that is needed for DS. Please tell me of any problems you run into with these code snippets. How To Use The Examples Below IMPORTANT: The code snippets in the sections below all alter either a character or a food. Look for the parenthesis in the titles for the code snippets to see which type of entity each code snippet is for, and then consult the application methods in this section to apply them to the entities you want (or in some other way, if you know what you're doing). Applying Changes Specific To Your Own Food Item Mod Put the code snippet in the prefab Lua code for your food, at the bottom of the fn function, after adding the edible component to it. Applying Changes To A Specific Food Entity Put this code in your modmain.lua, and put the code snippet you want where the comment says to put it: -- Replace FOOD_PREFAB_NAME with the name of the food prefab you want to change. AddPrefabPostInit("FOOD_PREFAB_NAME", function(inst) -- Put the code snippet here. end) Applying THE SAME Values To Several Food Entities Put this code in your modmain.lua, and put the code snippet you want where the comment says to put it, and fill in the list of affected food prefabs: local affected_foods = { "monstermeat", "corn" } for i, v in ipairs(affected_foods) do AddPrefabPostInit(v, function(inst) -- Put the code snippet here. end) end Applying DIFFERENT Values To Several Food Entities Put this code in your modmain.lua, and change the values in the food_stat_dict. NOTE that this approach needs none of the code snippets below. Just change the values in food_stat_dict. -- food_stat_dict is a dictionary with food prefab names as keys and stat-dictionaries as values. -- The stat-dictionaries have stat-names as keys and the effect on each stat as values. -- If you want a stat not to be affected, you can just omit it from the stat-dictionary. local food_stat_dict = { twigs = { sanity = 10 }, monsterlasagna = { health = 25, sanity = -10, hunger = -10 }, fishsticks = { health = 20, sanity = 20, hunger = 20 }, } for food_prefab, food_stats in pairs(food_stat_dict) do AddPrefabPostInit(food_prefab, function(inst) inst.components.edible.healthvalue = food_stats["health"] or 0 inst.components.edible.hungervalue = food_stats["hunger"] or 0 inst.components.edible.sanityvalue = food_stats["sanity"] or 0 end) end Applying Changes Specific To Your Own Character Mod Put the code snippet in the prefab Lua code for your character, at the bottom of the master_postinit function. Applying Changes To One Particular Character That Is Not Your Own Character Mod Put the code snippet in the prefab Lua code for your character, at the bottom of the master_postinit function. -- Replace CHARACTER_PREFAB_NAME with the name of the character prefab you want to change. AddPrefabPostInit("CHARACTER_PREFAB_NAME", function(inst) -- Put the code snippet here. end) Applying Changes To Several Characters Put the code snippet in the prefab Lua code for your character, at the bottom of the master_postinit function. local affected_characters = { "wilson", "webber" } for i, v in ipairs(affected_characters) do AddPrefabPostInit(v, function(inst) -- Put the code snippet here. end) end Applying Changes To All Characters Put this code in your modmain.lua, and put the code snippet you want where the comment says to put it: AddPlayerPostInit(function(inst) -- Put the code snippet here. end) Making Certain Foods Inedible (CHARACTER) You can extend the Eater:CanEat function of the eater component on your character (or entity), and return false early if it has a certain tag or foodtype, or if it is a specific food. Making All Foods With A Tag Or Specific Foodtype Inedible To make all foods with a certain tag or food type inedible for a character, use this code snippet. You can replace "mushroom" with the tag you want to make inedible or remove the tag check, just like you can replace "VEGGIES" with whatever foodtype you want to exclude or remove the foodtype check. You can add as many of both kinds of checks as you'd like. Now, not all food items have an appropriate tag or foodtype to single them out. In the example above, not all mushroom items have the "mushroom" tag, so if you want to make your character unable to eat more foods incl. all the mushrooms, you can always make a list of inedible food items and keep them from being eaten using similar code. Making Specific Foods Inedible Removing ONLY Negative Stat Effects From Certain Foods (CHARACTER) There are a few ways to go about this. Lets start with the least specific one, since it is the easiest to implement. There is a special function in the eater component called DoFoodEffects, which checks whether to apply any negative effect on sanity or health (so not negative hunger effects) from eating certain food items. If we take a cooked green mushroom cap as an example, it adds health but removes some sanity. We can make that negative sanity not be added at all, while still keeping the positive health effect. To be clear, this code removes all negative sanity and health effects from the foods in the "protected_foods" list, while still allowing any positive sanity and health effects that the food applies. Changing Food Values (CHARACTER) I only recently thought of this "new" solution to this problem. In the past, I have said that you can only "change" food values for your character by manually applying the altered effects AFTER the original food values have been applied by the game. This was because the "oneat" event is called on the character AFTER the original effects have already been added, and I did not see a way to affect this before that happened. But I completely missed this "new" way of changing the food values BEFORE the original food values are applied, so sorry to those people I have given more difficult solutions in the past. Again, we alter a function on the entity, but his time it's the Eat function on the eater component. We intercept the eater as they are eating the food, see if we have a set of special stats we would like this food to have for our character, and if we do, we change the food to have these stats, then eat it, and then revert the food stats back to normal immediately afterwards. Note that the values you enter REPLACE the value given by the food, so they are not an ADDITION. The values you enter, are the values your character will be given from eating that food. Changing Food Values Based On Whatever You Want E.g. Foodtype (CHARACTER) In the code-snippet below, you will find an example which removes the positive sanity- and health-effects of all foods with the foodtype "VEGGIES", while still allowing negative effects of the foods to be applied. Again, we alter the Eat function on the eater component. We intercept the eater as they are eating the food, see if we have a set of special stats we would like this food to have for our character, and if we do, we change the food to have these stats, then eat it, and then revert the food stats back to normal immediately afterwards. Note that the values you enter REPLACE the value given by the food, so they are not an ADDITION. The values you enter, are the values your character will be given from eating that food. Changing Food Values (FOOD) Changing the stats given by a particular food to all entities eating it is pretty straight-forward. You can set the values to whatever you want. NOTE that if you use this code-snippet to change several foods by using the Applying THE SAME Values To Several Food Entities approach at the top of this post, all the foods in your list will get the same values, which is usually not what you want. See the Applying DIFFERENT Values To Several Food Entities approach above for how to set different food values for many foods at once. I hope this helps some people
-
Version 4.1
5650 downloads
Adds Many additional crock pot recipes. Batilisk wings are made cookable (they count as 1/2 monster meat) Seeds made cookable Cold meat dish included to cool Wigfrid during the summer Candied Bacon included to help Wigfrid with sanity - compatible with Display Food Values and Smarter Crock Pot mods - compatible with Beefalo Milk and Cheese mod (can used cooked Milk in any recipe that requires milk) Please leave feedback if you have any comments, errors, or suggestions Known issues Items don't appear properly in Warly's portable crock pot (will be fixed next update) Some recipes accidentally disabled in Shipwrecked (will be fixed next update) Expect New Changes Soon =-=-=-=- A version compatible with DST is on steam You can download it here - even without a steam account http://steamworkshop.download/download/view/381565292- 18 comments
- 19 reviews
-
- 2
-
-
- food
- shipwrecked.
-
(and 1 more)
Tagged with:
-
I have a character that I have made able to eat rot and become stronger over eating large amounts of it, similarly to wx78. He is kind of a slime as of now, rot has the correct functionality and values when spawned in through console, however if rot is spawned via and item spoiling, it seems to behave such like normal rot and harms my character. is there a way to access the naturally generating rot as well as when it spawns in the console? I would appreciate any tips or examples on how to do this Thank you in advance to anyone who takes the time to help a young modder modmain.lua slurg.lua
-
Version 1.3
2866 downloads
This is my tweaked mods pack. credits for their authors. no mod is mine, just balance them, fix, add content.... This pack includes: Default's item pack [<domyślny>] Additional Equipment (fixed, compatible with servers with caves) [Silentine] icepack can be open at the same time as the backpack include bunnyback and houndback from Additional Equipment DS [Silentine] Aditional Item Package (Need Many more ores) [smith3 -- MagVI] include Golden Minecart [smith3 -- MagVI] The Maxwell's Revenge (Many functions disabled but you can edit this for enable) [Don] include Light Spear [Inspector Dave](reworked) fixed year of PigKing incompatibility Steampunk [star -- Hast] Asparagus and Chocolate and Coffee[Keidence -- yuli] [Hast -- Kuloslav][Mert the Türk] Deluxe Cooking Pot [Astro -- Jankiwen] Domestication Fixed [Darcrov] Many more ores(include many mods) Moar Metals [RoG] [DST] [Cr3ePMan -- Globalastick] Tungsten Mod [ outseeker (au) -- Marqson-- Mr. Gentleman --Zarklord] Shadow Tools [FelixTheJudge -- Neu7ral] Expanded Shadow Armory [FelixTheJudge] Lunar Tools [FelixTheJudge] Marble Combat [FelixTheJudge] Felix's Explosive Bomb Pack [FelixTheJudge] Special Saddles [Ryuu -- pinkmollies] 77_Downvest [The77sim3] Mace [Mico] Spiked Mace [Mico] Blood bag [Pirate Joe -- Delicius] Booty Pack [^-,...,-^] (can be open as chest or equiped as backpack) Eelight DST [Globalastick] Lovely Chest (Fireproof) [RiverSwim] Madman's Fighting Pack [star -- Madman666] More armor [noerK -- VaneshKi] More Gold Tools(DST) [JustJasper] Moving Box [Jelly -- Peanut Butter] Notebook [KaiserKatze] Monster Hambat [kasra9400] Battle Horn [Tykvesh] Dining Table [宵征] DST Gesture wheel [rezecib] DST Minimap HUD [squeek] DST Always on status [rezecib -- Kiopho] Extra Equip Slots Increase Storage [Luis95R] koalefant beefstification [imperialistic dog] Simple economy [AppleMomo] Super Wall (Need Many more ores, and icludes New Walls - Reeds, Hedge, Mud, Living and Bone) [DYC] [JustJasper] Your Skeleton Respawn [Беккит] -
I am making a food, that when eaten, reduces fire damage taken. liquor = { test = function(cooker, names, tags) return tags.frozen and (names.pepper or names.pepper_cooked) == 2 and (names.tomato or names.tomato_cooked) end, priority = 30, foodtype = FOODTYPE.VEGGIE, health = -TUNING.HEALING_SMALL, hunger = TUNING.CALORIES_MED, sanity = TUNING.SANITY_SMALL, perishtime = TUNING.PERISH_SLOW, cooktime = 0.75, potlevel = "low", tags = { "masterfood" }, prefabs = { "buff_fireimmunity" }, oneatenfn = function(inst, eater) if eater.components.debuffable ~= nil and eater.components.debuffable:IsEnabled() and not (eater.components.health ~= nil and eater.components.health:IsDead()) and not eater:HasTag("playerghost") then eater.components.debuffable:AddDebuff("buff_fireimmunity", "buff_fireimmunity") end end, --floater = {nil, 0.1, 0.7}, }, This is my code for the crockpot recipe. In modmain: local function fire_attach(inst, target) if target.components.health ~= nil then target.components.health.fire_damage_scale = 0.1 end end local function fire_detach(inst, target) if target.components.health ~= nil then target.components.health.fire_damage_scale = 1 end end local function create_fire_buff(inst) MakeBuff("fireimmunity", fire_attach, nil, fire_detach, TUNING.BUFF_MOISTUREIMMUNITY_DURATION, 2) end AddPrefabPostInit("foodbuffs", create_fire_buff) When I cook the food, it has no texture, and when I harvest the crockpot, it disappears.
-
Version 1.2.0
2085 downloads
Grow vegetables and fruits without a farm! How to do it? Create a hoe; Till the ground; Fertilize the soil; Plant a seed! It is possible to grow vanilla plants too! Cook new vegetables in a crockpot. New recipes: Bread (4 wheat); Fruit muffin (fruit, egg, wheat, honey) Tomato soup (2 tomato, veggies, no meat); Onion soup (2 onion, veggies, no meat); Meat soup (2 garlic, 1 additional veggie, 1 meat); Fish soup (2 potato, 2 fish); Pumpkin soup (pumpkin, 1 honey, wheat, no meat) Fruit pie (2 wheat, fruits, no meat) Vegetable pie (2 wheat, veggies, no meat) Meat pie (2 wheat, meat) Fish pie (2 wheat, fish) Sweet turnip (2 turnip, 2 honey, no meat) How to get new seeds? It's pretty simple — new vegetables can be grown from usual seeds. Also you can get specific seeds using a birdcage. Don't like the new farming system? Disable the hoe recipe and grow new vegs on usual farms. Steam links: Together, Single -
I would like to make it Warly get a small amount of sanity, and maybe says some random quote every time he starts cooking in his portable crockpot. I have no idea how to do this, so I haven't tried anything. How would I go about doing this?
-
Hi everyone! I am very new to the modding thing. I am trying to make a character mod for Don't Starve Together. He's gonna be a Rock person. Following along with the tutorial on the Klei website, it all seems fairly straightforward. However, I've run into a little snag (being that I have no coding experience, and don't want to screw up my game) I need help with a few things. Firstly, a slightly slower sanity drain, I set his sanity to 50, but i'd like it to drain a bit slower. Found someone else's thread to help here! Secondly, how to make it so he can mine boulder and etc, with his fists. Thirdly, how he can give off a warmth aura exactly like a thermal stone. Fourthly, how to drain his sanity near pickaxes. And lastly, how to make food non edible, but minerals edible for him. Any help would be appreciated.
- 5 replies
-
- charactermod
- coding
-
(and 4 more)
Tagged with:
-
Hello! I'm very sorry for the inconvenience. I am creating a character for DST. I want to make the character unable to eat meat, something like Wormwood. I'm quite a novice so I don't know how to look at the code of characters that are already part of the game. Any help would greatly appreciate it.
-
What is the file path, or where can I find the source code for crockpot food. I have been searching but can not find it. Specifically, I want to find the code for jellybeans. But knowing the code for all the foods can also help with future mods.
-
Hello, I have a mod which creates additional food items, however if I try to add spices to them using Warly's station, I end up with spiced wet goop. I have looked at spicedfoods.lua and I cant see any reason for this, but admittedly my Lua knowledge is limited. I had thought maybe adding GenerateSpicedFoods(require("mod_foods")) -- Insert modded_foods into food spicer local function ModDSTSpicer(inst) GenerateSpicedFoods(require("mod_foods")) end AddPrefabPostInit("spicedfoods", ModDSTSpicer) However, this didn't result in any change, either because it doesn't matter, or perhaps is coded wrong. I am at a bit of a loss. Any advice would be appreciated, thank you.
-
This mod gives a slight buff to underrated crock pot food in the form of effects. This hopes to make the underrated food standout, give variety to cooking and has a reason to be eaten. As people only choose food for the best stat like meatballs or pierogi. I get my inspiration from the item coffee and WX's upgrade stat. What do you guys think of this mod? Is it too OP? or is it a good idea? Feel free to leave a suggestion on balancing or add ideas. Why you should eat it. [Combat] Spicy Chili-grants 0.25x damage multiplier for 2 minutes [changed] Fruit Medley- grants 10% movement speed for 3 minutes (cave exploration) Guacamole-grants 25% protection for 5 minutes "thick skin" Kabobs-grants AoE splash damage of 10% of the damage dealt for 1 minute (good for killing bees) [changed] [Quality of life] Turkey dinner- grants reduce hunger loss by 10% for 3 minutes (+ 40% belt of hunger = 50%) Stuffed Eggplant- Grants 20 extra health for 5 minutes Balancing note: -Multiple effects at the same time. -Same effects, don't stack. It only refreshes the timer. -Effects only given when it's fresh "Green". Motivates players to eat fast, wear an insulated pack, bring snow Chester, and rush bundle wraps.
-
Hello Everyone! Im working on a character that automaticly eats everything he has on him when his hunger gets too low until his hunger is full again. I have everything in place exept for the part where he actually eats any food he has. And i have no idea how to do this to be fair. Would someone be willing to lend me a hand?
-
I was wanting to have an food item, that upon being eaten, gives the player an object This is what I am working with, but nothing happens. local function OnEaten(inst, eater) inst.components.inventory:GiveItem(GLOBAL.SpawnPrefab("drupe")) end And, I would prefer that it only works if the eater is a player, so that if another mob eats the food, they don't get the item.
-
Hello there! I've been trying to make a custom crockpot burger food recipe for my character mod, by following this item sample: https://forums.kleientertainment.com/files/file/202-sample-mods/ Following this and even going to check out mods that succeeded the same doesn't quite work for me? The item DOES exist it the game, as I can spawn it in my inventory (using c_give, as c_spawn doesn't work for it), but it is impossible to put on the ground (it disappears instantly and doesn't exist at all anymore) And it also does not cook in the crockpot with the recipe I made. I assume it has to probably do with the way I get the anim.zip to work. I didn't really find a tutorial that shows how to proceed once the art is done to make the zips and all, so I made a spriter in the exported folder to get it to compile the anim automatically. I don't really know if I do it properly, so any help would be amazing! I have attached my whole mod folder as a zip to this topic, (below the gif) if anyone is willing to help me! Thanks for reading! Here's a gif of the issue in-game:
-
I tried to make my DST Character better at healing and succeeded. but now it also aplies when i eat any health restoring food item. Does anyone know a way to change this code to where it only affects healer items such as spider glads and haling salves? under charactername.lua: local function _newHealthDoDelta(self, amount, cause, ...) local MULT = 1.5 if amount > 0 then amount = amount * MULT end return self.inst._oldHealthDoDelta(self, amount, cause, ...) end under master_postinit: inst:ListenForEvent("_newHealthDoDelta", _newHealthDoDelta) inst._oldHealthDoDelta = inst.components.health.DoDelta inst.components.health.DoDelta = _newHealthDoDelta
-
I have two similar problems. Tagging cooked items: I'd like to tag all foodstuffs prepared by a specific character I'm making, to mark that it was prepared by her for later use. I thought to wrap the existing ACTIONS.COOK.fn function, but it doesn't return the prepared item. I'd rather not replace it altogether since that is more likely to clash with other mods. I'd also rather not modify each of the components capable of cooking, also to allow support with other mods that may add more cooking options. It seems like the most sensible place to make the change would be with the COOK action somehow, but like I said, I don't know how to do that in a non-invasive manner. Is there some OnFinishedCooking function or something of the sort somewhere that gives the created product and the chef who made it? I think the lesser evil here would be to modify the cooker and stewer components (how do I do that, by the way?), but I'd appreciate some experienced input here. Tagging built items: The same thing, really, just for items being built (crafted). I'd also like to add a tag saying they were crafted by a specific (different) character. There's a BUILD action, but it doesn't return the created product either, same as with the COOK action. Even more problematic is that here I think I have to change Builder:DoBuild (i.e. overwrite it completely to make the modifications to it), which once again, is not as compatible with other mods as wrapping. Actually, it's also more likely to require changing when the game is updated, since any change to the overridden function would require changing the overriding function as well. So how do you think I should go about doing these two things? Thanks in advance.
-
I've spent the last day and a half trying to make a character who can only consume 3 things, Gears, Transistors, and Gold nuggets, to restore Hunger and Health. I've been lurking around in various forums and places trying to add this functionality but so far no luck. I have this line added in my modmain.lua; ---- local FOODTYPE = GLOBAL.FOODTYPE FOODTYPE.GEM = "GEM" function GemPostInit(inst) inst:AddTag("edible_"..FOODTYPE.GEM) end AddPrefabPostInit("gears", GemPostInit) AddPrefabPostInit("goldnugget", GemPostInit) AddPrefabPostInit("gears", GemPostInit) ---- And this in my character.lua; ---- inst.components.eater:SetDiet({ FOODGROUP.GEM }, { FOODGROUP.GEM }) inst.components.eater:SetOnEatFn(foodbonus) ---- local function foodbonus(inst, food) if inst.components.eater and food.prefab == "gears" then inst.components.sanity:DoDelta(15) inst.components.health:DoDelta(150) inst.components.hunger:DoDelta(25) end if inst.components.eater and food.prefab == "goldnugget" then inst.components.sanity:DoDelta(5) inst.components.health:DoDelta(60) end if inst.components.eater and food.prefab == "transistor" then inst.components.hunger:DoDelta(100) end end ---- After many crashes and troubleshooting, the game now plays without crashing, but I cannot consume any of these three items. I would like to add the custom foodgroup to these specifically so that other characters don't gain the same benefits, as only this character will be able to consume from the foodgroup. (Note, the name of the foodtype 'GEM' is arbitrary) The idea behind this character is that they cannot consume food as they are a robot without a mouth, (Or a chemical Engine) so they must utilize transistors to power themselves back up like batteries, and use Gears and Gold nuggets to repair themselves.
-
I was wondering if it would be possible to create a character who only eats nightmare fuel to sustain his hunger, but loses a little sanity every time he eats it. Would this be possible?
-
I am trying to allow juicy berries to be dried on the drying rack... I've already got the animation worked out for when the berries are hanging, But I need to insert these lines into the prefab for "berries_juicy" inst:AddComponent("dryable") inst.components.dryable:SetProduct("raisins") inst.components.dryable:SetDryTime(TUNING.DRY_FAST) I've tried various methods, but keep getting errors Any advice?
- 5 replies
-
- help needed
- drying rack
-
(and 4 more)
Tagged with:
-
I want to harvest 3 units of plants from one Farm Plot. How to do this?
-
Heyo, I made a custom prefab that can be eaten. (ie it's a food.) I tried to change the values of health, hunger and sanity given when it's eaten, but I only get the stats for Cooked Morsel. (i think). So can anyone help? Heres my item.lua