Jump to content

Recommended Posts

I'm trying to create a custom recipe for my custom character but can't seem to make it work. I have been trying all sorts of things I found in topics on the forum but non seem to work.

 

I basically have a custom tool: fryingpan and want only my character to be able to craft it.

 

I know it has to do something with a builder tag but cannot seem to make it work.

 

 

This is what I tried last in modmain.lua:

local fryingpanRecipe = Recipe("fryingpan", { Ingredient("cutgrass", 2)}, RECIPETABS.TOOLS, TECH.NONE,nil, nil, nil, nil, "fryingpan_builder") 

Could any one please help me out?

Found it out.

 

I put the following in modmain:

    Asset("ATLAS", "images/inventoryimages/fryingpan.xml"),    Asset("IMAGE", "images/inventoryimages/fryingpan.tex"),    --Frying pan    GLOBAL.STRINGS.NAMES.FRYINGPAN = "Frying Pan"    GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.FRYINGPAN = "Frying pans... who knew, right? "    GLOBAL.STRINGS.RECIPE_DESC.FRYINGPAN = "A multi chop and mine tool."

And in my character:

local fryingpanRecipe = Recipe("fryingpan", { Ingredient("twigs", 3), Ingredient("flint", 2), Ingredient("goldnugget", 1)}, RECIPETABS.TOOLS, TECH.NONE)fryingpanRecipe.atlas = "images/inventoryimages/fryingpan.xml"

Weirdest thing is that I am sure I tried it before.

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