Jump to content

Trying to use a non-food item in a food recipe (Solved)


Oddbolt

Recommended Posts

Edit: Turns out all I had to do was change the Twigs;3 to Twigs=3!

 

Hi, I'm trying to make a recipe using twigs (don't ask) but unfortunately am getting this error: DGsJU8y.png

It's obviously preventing me from using twigs as they're not classed as a food ingredient. Anyone know if it's possible to override that code somehow? I'm not terribly great with code yet, this is all new to me. The recipe is fairly straight forward though, just some twigs and one of the new food items I'm adding.

 

This is the recipe file:

module Base {
	imports 
	{
        Base,
    }
     recipe Bag of Twiglets
    {
       Twigs;3,
       Marmite;5,

       Result:Twiglets,
       Time:20.0,
       Category:Cooking,
       OnGiveXP:Recipe.OnGiveXP.Cooking3,
    }

    
}
Edited by Oddbolt
Link to comment
Share on other sites

1 hour ago, Oddbolt said:

Hi, I'm trying to make a recipe using twigs (don't ask) but unfortunately am getting this error: DGsJU8y.png

It's obviously preventing me from using twigs as they're not classed as a food ingredient. Anyone know if it's possible to override that code somehow? I'm not terribly great with code yet, this is all new to me. The recipe is fairly straight forward though, just some twigs and one of the new food items I'm adding.

 

This is the recipe file:

module Base {
	imports 
	{
        Base,
    }
     recipe Bag of Twiglets
    {
       Twigs;3,
       Marmite;5,

       Result:Twiglets,
       Time:20.0,
       Category:Cooking,
       OnGiveXP:Recipe.OnGiveXP.Cooking3,
    }

    
}

 

 

You just want: Twigs=3

Using Twigs;3 you're telling the game to use 3 hunger units of twigs.

 

Link to comment
Share on other sites

  • Oddbolt changed the title to Trying to use a non-food item in a food recipe (Solved)

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