EmielRegis Posted March 1, 2014 Share Posted March 1, 2014 Hello. I made few custom items, they all have own ground, inventory and crafting images. However when my new item is ingredient of another item hes image is not shown in needed to craft items. Anyone know why and how to fix it? Link to comment Share on other sites More sharing options...
EmielRegis Posted March 3, 2014 Author Share Posted March 3, 2014 Anyone? Link to comment Share on other sites More sharing options...
NikMik Posted March 3, 2014 Share Posted March 3, 2014 local prefabname = Ingredient( "prefabname", 1) prefabname.atlas = "images/inventoryimages/prefabname.xml" above the recipe - changing "prefabname" to the name of the prefab you want to act as the ingredient. Here's an example using my mod-in-progress: local maddagger = Ingredient( "maddagger", 1) maddagger.atlas = "images/inventoryimages/maddagger.xml" local madscytherecipe = GLOBAL.Recipe( ("madscythe"), {maddagger, Ingredient("nightmarefuel", 9), Ingredient("marble", 8)}, RECIPETABS.MADNESS, {MAGIC = 0} ) madscytherecipe.atlas = "images/inventoryimages/madscythe.xml" Link to comment Share on other sites More sharing options...
EmielRegis Posted March 3, 2014 Author Share Posted March 3, 2014 Great thx ^^ Link to comment Share on other sites More sharing options...
MidrealmDM Posted April 7, 2014 Share Posted April 7, 2014 local prefabname = Ingredient( "prefabname", 1)prefabname.atlas = "images/inventoryimages/prefabname.xml" above the recipe - changing "prefabname" to the name of the prefab you want to act as the ingredient. Thanks for the post, it was exactly what I needed as well. Does anyone know how to put a description of the item in the crafting tab? Link to comment Share on other sites More sharing options...
DevilXD Posted April 7, 2014 Share Posted April 7, 2014 GLOBAL.STRINGS.RECIPE_DESC.PREFAB_NAME = "Recipe desc." Link to comment Share on other sites More sharing options...
MidrealmDM Posted April 8, 2014 Share Posted April 8, 2014 GLOBAL.STRINGS.RECIPE_DESC.PREFAB_NAME = "Recipe desc." Perfect - thanks that worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.