Jump to content

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

Edited by EmielRegis
Link to comment
https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/
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"

Edited by Mr. Tiddles

 

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?
Edited by MidrealmDM

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...