Jump to content

problem with my recipe


Recommended Posts

I made a recipe for my hat and it is working if i'm crafting it but recipe itself looks weird

Here's a screenshot
image.png.43e24813df2ee3e32a76dbc70e24687f.png

 

And here's the code

    Recipe("evilgarland", {Ingredient("petals_evil", 12)}, 
    RECIPETABS.DRESS, {SCIENCE = 0})
    STRINGS.RECIPE_DESC.PETALS_EVIL= "Pesky parasite!"

 


 

Edited by fixerhere
Link to comment
Share on other sites

If you add a new recipe you should use the add recipe function. also, you need to specify what image you wanna use.

i dont know what you think is "weird" but try to add it like this:

local papyrusbatch = AddRecipe("papyrusbatch", {Ingredient("cutreeds", 40)}, RECIPETABS.REFINE,  TECH.SCIENCE_ONE)
papyrusbatch.product = "papyrus"
papyrusbatch.image = "papyrus.tex"
papyrusbatch.numtogive = 10
STRINGS.NAMES.PAPYRUSBATCH = "Papyrus 10x"
STRINGS.RECIPE_DESC.PAPYRUSBATCH = "For writing things."

if the product is the same as the recipe name, you dont need to specify it again.

Link to comment
Share on other sites

You should post your error log (or at least the crash itself) so we can help debug stuff. Also the code, and as commented as you can manage.

Also, you should first use a lot of print("[useful info]") to see exactly which line is causing the crash (if the handler won't give a specific error message)

Remember to use tostring(thing) to print variable values (so print("var is equal to"..tostring(var)) prints var)

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
 Share

×
  • Create New...