Jump to content

Accessing item identifiers from one module to another...


apelikejay

Recommended Posts

I'm working on a compilation of sorts... several working mods from other coders, with some of my own additions... I need to use the item identifier "SpraycanWhite" (and all the other colors) from the spraypaint mod, as an ingredient in custom recipes, in a different file and module...

 

I have tried all sorts of combinations of "spraypaint.SpraycanWhite" ... "Base.Spraycanwhite" (which wouldnt make sense) ... "Base.spraypaint.SpraycanWhite"... nothing works...

 

The same can be said for items from the farming.txt file in ../media/scripts/... when trying to use Shovel or HandShovel as ingredients in a recipe, it doesn't recognize "farming.Shovel"...etc...

 

I can hack the other mods into one giant mod which will allow localized access to the item identifiers but this wouldnt work with the farming file... at least I wouldn't want to mess with the default game files.

 

It's a customized recycle mod... trying to extend crafting and sustainability in a multiplayer server my cousin and I play...

 

 

    recipe Recycle Spraycan
    {
                spraypaint.SpraycanWhite,
       
        Result:MetalScraps=2,
        Time:20.0,
    }

 

    recipe Recycle Shovel
    {
                farming.Shovel,
       
        Result:MetalScraps=20,
        Time:200.0,
    }

 

 

I would think that should work... it doesn't. Any help is appreciated... Thanks.

 

 

Link to comment
Share on other sites

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