Jump to content

Custom ITEM Recipe


TyrantXP

Recommended Posts

Hi there,

 

I cant find anything about making a Custom Item Recipe i don't know how exactly do this

Im trying to do somthing but still crashing :(

 

and i need also make a image of MY One custom ingredient show in the crafting tab too.

 

Link to comment
Share on other sites

A custom item is like a placable, but without the last parameter (the placer).

 

That means you need to make...

... TECH.SOMETHING, "something_placer")

to ....

... TECH.SOMETHING)

 

For the image, put your recipe as a variable, like so:

 

local rec = Recipe("mything", ....)

 

and after that put your texture name:

rec.atlas = "images/myimage.xml"

 

EDIT: That belongs into modmain.lua, I asume you have handled the GLOBAL.x stuff already.

Link to comment
Share on other sites

A custom item is like a placable, but without the last parameter (the placer).

 

That means you need to make...

... TECH.SOMETHING, "something_placer")

to ....

... TECH.SOMETHING)

 

For the image, put your recipe as a variable, like so:

 

local rec = Recipe("mything", ....)

 

and after that put your texture name:

rec.atlas = "images/myimage.xml"

 

EDIT: That belongs into modmain.lua, I asume you have handled the GLOBAL.x stuff already.

 

Allright got it working :grin:

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...