Jump to content

Recommended Posts

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.

Edited by Mobbstar

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:

Edited by TyrantXP

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