Jump to content

Recipe image problem


Recommended Posts

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?

 

 

rh4f2g.jpg

Link to comment
Share on other sites



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

 

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

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.

×
  • Create New...