Earthyburt Posted September 25, 2020 Share Posted September 25, 2020 (edited) I am going to create 2 items from scratch for my mod: and those are: A Custom Nightmare Amulet, which is an edited version of the nightmare amulet, and bloody nightmare fuel, which will be a crafting recipe for the custom nightmare amulet. I am also looking for a way to create a custom crafting tab and a custom recipe for shadow fuel that only applies to my custom character. I would like to know what files I need to add to my pre-existing file so I can keep it all in one place Edited September 25, 2020 by Earthyburt Link to comment https://forums.kleientertainment.com/forums/topic/122029-how-to-create-items-from-scratch-other-questions/ Share on other sites More sharing options...
Serpens Posted September 26, 2020 Share Posted September 26, 2020 (edited) I dont understand your last sentence, can you elaborate? For the craft tab and recipes, would advise to simply download 2-3 mods that also did this and see in the files how they did it. If they all 3 made it the same way, chances are high it is the correct one (although not guranteed :D) One example from one of my mods: local shoptab = AddRecipeTab("Shop", 979, "images/map_icons/shopicon.xml", "shopicon.tex") -- 979 is a number that determines how to sort the tabs I think. AddRecipe("journalpage1", { GLOBAL.Ingredient(GLOBAL.CHARACTER_INGREDIENT.HEALTH, 5), GLOBAL.Ingredient("coin",2) }, shoptab, GLOBAL.TECH.SHADOW_TWO,nil,nil,true,1,"shadowmagic",nil,"papyrus.tex",nil,"journalpage") -- AddRecipe("name_of_recipe",Ingredients, required_prototyper, placer(for_structures), min_spacing(strucutres), nounlock(learnable or not), numtogive, builder_tag(only chars with this Tag can buildit), atlas, image, testfn(structures), product (what is produced with recipe, prefab) ) Edited September 26, 2020 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/122029-how-to-create-items-from-scratch-other-questions/#findComment-1374955 Share on other sites More sharing options...
Earthyburt Posted September 26, 2020 Author Share Posted September 26, 2020 I was wanting to keep the new items I make along with the same mod folder as my custom character. And I was wondering what files I need to add to what mod folders so Don't Starve Together Wouldn't crash Link to comment https://forums.kleientertainment.com/forums/topic/122029-how-to-create-items-from-scratch-other-questions/#findComment-1375005 Share on other sites More sharing options...
Serpens Posted September 26, 2020 Share Posted September 26, 2020 (edited) use the same structure like the game does. So beside your modmain you have a scripts folder. And within you have a prefabs and if needed a components folder. And your new item file (will be a prefab) belongs to that prefabs folder and the file itself should have the same style like existing prefabs from the game. Edited September 26, 2020 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/122029-how-to-create-items-from-scratch-other-questions/#findComment-1375018 Share on other sites More sharing options...
Yakuzashi Posted October 2, 2020 Share Posted October 2, 2020 @Earthyburt https://forums.kleientertainment.com/forums/topic/115694-templatetutorial-custom-crafting-tab-and-items/ You may find it useful 1 Link to comment https://forums.kleientertainment.com/forums/topic/122029-how-to-create-items-from-scratch-other-questions/#findComment-1376520 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now