Jump to content

How can I add a custom recipe for an existing item for my custom survivor?


Recommended Posts

Hey-hey!

I was able to achieve to create a custom recipe, but the problem is that everyone on the server is able to use that recipe as well. The goal is that this recipe should be only used by the custom character.

I use this in my .lua folder:

Spoiler

Recipe("onemanband", {Ingredient("goldnugget", 2), Ingredient("pigskin", 1)}, 
    RECIPETABS.TOOLS, {TIER = 0})
    STRINGS.RECIPE_DESC.ONEMANBAND= "The best way to make new friends!"

How should I change it to make it custom character only?

My second recipe would use 20 Hunger and 5 Health to produce one Nightmare Fuel. I've tried some codes that I've found around the net, but none of them seemed to work.

 

Can I beg for your help once again? :)

Link to comment
Share on other sites

Give your character a tag that only it has, and then use it as the requirement in the recipe. (take a look at Wormwood's Recipes for example, his parameter order should show you where to put the tag specifier)

Edited by penguin0616
  • Like 2
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...