Wax

Recipes

game.Recipes: finding crafting recipes and changing what they take, give and where they are made.

The Explorer searches everything on this page, and the classes of the game too.

game.Recipes

The game's crafting recipes: finding them and changing them. game.Recipes:Get("Stone_Axe"):SetInputs({ Stone = 1 }) makes a stone axe cost one stone, and game.Recipes:At("Fabricator"):ScaleTime(0.5) makes everything the Fabricator makes twice as fast. Every change goes through game.Data, so it is checked first, put back when the mod unloads, and listed by game.Data:Changes().

Type name: WaxRecipes.

Open in the Explorer

game.Recipes:Get(name)

One recipe by its name, at once: nothing of the recipe is read until a field is asked for. A name the game does not have raises an error that suggests the nearest ones, so ask Has first when the name may be wrong. The recipe for an item often has the item's name, but not always, and some items have several recipes: Making finds them all.

game.Recipes:Get(name: string): WaxRecipe
ParameterType
namestring

Returns WaxRecipe

Open in the Explorer

game.Recipes:Has(name)

True when the game has a recipe of this name.

game.Recipes:Has(name: string): boolean
ParameterType
namestring

Returns boolean

Open in the Explorer

game.Recipes:All()

Every recipe the game has. Nothing is read for it.

game.Recipes:All(): WaxRecipeList

Returns WaxRecipeList

Open in the Explorer

game.Recipes:At(bench)

The recipes a bench lists: game.Recipes:At("Fabricator"), game.Recipes:At("Hand"). A bench is named by the item that is the bench, by its recipe set, or "Hand". A hidden recipe is on no bench's list, and what a player has researched makes no difference to the list. In a prospect the game itself is asked, which took 1 to 3 milliseconds when it was measured. Its answer for a bench is kept until a recipe is written, so asking again costs under a millisecond. Anywhere else, and when the game does not answer, the recipe table is read instead, as Using does it.

game.Recipes:At(bench: string): WaxRecipeList
ParameterType
benchstring

Returns WaxRecipeList

Open in the Explorer

game.Recipes:Making(item)

The recipes that give an item: game.Recipes:Making("Rope"). The name is an item, or a template. It reads what every recipe gives and every template's item. Inside a task that pauses when it has used a millisecond of a frame. Anywhere else it is read at once, which the first time is a frame the player can notice. What was read is kept, and looking through it still took 8 milliseconds when it was measured, so search when the mod loads, not in every frame.

game.Recipes:Making(item: string): WaxRecipeList
ParameterType
itemstring

Returns WaxRecipeList

Open in the Explorer

game.Recipes:Using(name)

The recipes that take an item, a tag or a resource: game.Recipes:Using("Fiber"). It reads what every recipe takes. Inside a task that pauses when it has used a millisecond of a frame. Anywhere else it is read at once, which the first time is a frame the player can notice. What was read is kept, and looking through it still took 10 milliseconds when it was measured, so search when the mod loads, not in every frame.

game.Recipes:Using(name: string): WaxRecipeList
ParameterType
namestring

Returns WaxRecipeList

Open in the Explorer

game.Recipes:Find(fn)

The recipes fn returns true for: game.Recipes:Find(function(recipe) return recipe.Work > 10000 end). It asks about every recipe, and each field fn reads is read from the game the first time. Inside a task it pauses when it has used a millisecond of a frame.

game.Recipes:Find(fn: fun(recipe: WaxRecipe): boolean?): WaxRecipeList
ParameterType
fnfun(recipe: WaxRecipe): boolean?

Returns WaxRecipeList

Open in the Explorer

game.Recipes:Add(name, options)

Adds a recipe: a copy of the recipe options.like names, changed by the other options. game.Recipes:Add("MyMod_Quick_Axe", { like = "Stone_Axe", inputs = { Stone = 1 }, seconds = 1 }). The name begins with the mod's id and an underscore. It is switched off in this version of Wax and raises an error that says so: adding a row to the game's tables while the game runs has not been seen working yet.

game.Recipes:Add(name: string, options: WaxRecipeAddOptions): WaxRecipe
ParameterType
namestring
optionsWaxRecipeAddOptions

Returns WaxRecipe

Open in the Explorer

WaxRecipe

One crafting recipe: a row of D_ProcessorRecipes. game.Recipes:Get("Stone_Axe") gives one. Reading a field reads the game's table, so it is always what the table holds now. The lists it gives are yours to change: that changes nothing in the game. One exception keeps a mod steady while it is being reloaded: what the mod itself wrote before the reload is left out, so if recipe.Work > 2000 then recipe:SetWork(2000) end does the same thing each time. Every function that changes the recipe returns the recipe, so changes can follow one another: game.Recipes:Get("Stone_Axe"):SetInputs({ Stone = 1 }):SetSeconds(1). A change is written before the function returns. It belongs to the mod that makes it and is put back when the mod unloads, as every change of game.Data is. What two mods do to one recipe is worked out in the order the mods load. SetInput, RemoveInput, the Scale functions, AddBench, RemoveBench and the output functions build on what an earlier mod did. SetInputs, SetBenches, MoveTo, SetWork, SetSeconds, SetRequirement, Hide and Show replace it, and game.Data:Conflicts() lists a field where that hides another mod's different value. What a change does to something that is being made or waiting in a queue, as it was seen on the host: a new time counts from the next moment, so what is half done by the old time may be nearly done, or done, by the new one. What is taken and what comes out is read from the recipe when the making ends, as the recipe is then. Nothing is taken before that. As soon as the player cannot pay what the recipe takes, the making is dropped without a message, and nothing is lost. So change recipes when the mod loads if a player should never see one change while it is being made. Names of items, benches, recipes and nodes are matched without regard to letter case. A name the game does not have raises an error that suggests the nearest ones. This version of Wax cannot make every list of a recipe longer or shorter. The outputs keep their number: each can become another item and another count. The resources keep their number too. The items, the tags and the benches of a recipe can be added to and taken from while the list has 4 entries or fewer, before and after. A change that is refused raises an error that says so, and changes nothing.

You get one from game.Recipes:Get, game.Recipes:Add. Below, recipe stands for one of these.

Open in the Explorer

PropertyTypeDescription
NamestringThe recipe's name: its row in D_ProcessorRecipes, spelled as the game spells it.
InputsWaxRecipeInput[]The items the recipe takes each time it is made.
TagsWaxRecipeTag[]What the recipe takes by tag.
ResourcesWaxRecipeResource[]The resources the recipe takes.
OutputsWaxRecipeOutput[]What comes out each time the recipe is made.
Benchesstring[]The recipe sets the recipe is in. A bench lists the recipes of its set. "Character" is what is made by hand.
WorkintegerThe work making the recipe once takes, in millijoules. A bench works at so many milliwatts, and the time is the one divided by the other.
Requirementstring?The node of the tech tree that has to be researched first: its row in D_Talents. nil when the recipe needs no research.
HiddenbooleanTrue when the recipe is taken off every list.

recipe:GetSeconds(bench?)

How long making the recipe once takes at a bench, in seconds, before talents and upgrades. Without a bench it is the time at the recipe's own benches. When those work at different speeds, or Wax does not know how fast one works, it raises an error that says so.

recipe:GetSeconds(bench?: string): number
ParameterType
bench (optional)string

Returns number

Open in the Explorer

recipe:SetInputs(inputs)

Sets the items the recipe takes: recipe:SetInputs({ Wood = 2, Fiber = 4 }). Written like that they are put in the order of their names. A list keeps the order it is given in: { { "Wood", 2 }, { "Fiber", 4 } }, or { { Item = "Wood", Count = 2 } }. What the recipe takes by tag and its resources stay as they are. A count is a whole number of 1 or more. An empty table is refused when the recipe would then take nothing at all.

recipe:SetInputs(inputs: table<string, integer>|table[]): WaxRecipe
ParameterType
inputstable<string, integer> | table[]

Returns WaxRecipe

Open in the Explorer

recipe:SetInput(name, count)

Sets how many of one thing the recipe takes, and adds it when the recipe does not take it yet: recipe:SetInput("Wood", 2). The name is an item, a tag or a resource. A resource can only be changed where the recipe already takes it.

recipe:SetInput(name: string, count: integer): WaxRecipe
ParameterTypeDescription
namestring
countintegerA whole number of 1 or more.

Returns WaxRecipe

Open in the Explorer

recipe:RemoveInput(name)

Takes one item or tag out of what the recipe takes. It raises an error when the recipe does not take it, when the recipe would then take nothing at all, and for a resource, which cannot be taken away in this version. On a list of recipes, the ones that do not take it are left as they are.

recipe:RemoveInput(name: string): WaxRecipe
ParameterType
namestring

Returns WaxRecipe

Open in the Explorer

recipe:ScaleInputs(factor)

Multiplies every count the recipe takes: items, tags and resources. recipe:ScaleInputs(0.5) halves the cost. A count is rounded up and never goes under 1.

recipe:ScaleInputs(factor: number): WaxRecipe
ParameterTypeDescription
factornumberA number above 0.

Returns WaxRecipe

Open in the Explorer

recipe:ScaleInput(name, factor)

Multiplies the count of one item, tag or resource the recipe takes. The count is rounded up and never goes under 1. It raises an error when the recipe does not take it. On a list of recipes, the ones that do not take it are left as they are.

recipe:ScaleInput(name: string, factor: number): WaxRecipe
ParameterTypeDescription
namestring
factornumberA number above 0.

Returns WaxRecipe

Open in the Explorer

recipe:SetOutputs(outputs)

Sets what comes out: recipe:SetOutputs({ Stone_Axe = 2 }), or a list as SetInputs takes it. An item is written as its template: the one of its own name, else its only one. For an item with several templates and none of its own name, name the template: { { Template = "Waterskin_Full", Count = 1 } }. An output that stays keeps its place and whatever else the game keeps with it. In this version the number of outputs has to stay the same.

recipe:SetOutputs(outputs: table<string, integer>|table[]): WaxRecipe
ParameterType
outputstable<string, integer> | table[]

Returns WaxRecipe

Open in the Explorer

recipe:SetOutput(name, count)

Sets how many of one item come out: recipe:SetOutput("Stone_Axe", 2). The name is an item or a template. In this version it raises an error when the recipe does not give that item, because an output cannot be added.

recipe:SetOutput(name: string, count: integer): WaxRecipe
ParameterTypeDescription
namestring
countintegerA whole number of 1 or more.

Returns WaxRecipe

Open in the Explorer

recipe:ScaleOutputs(factor)

Multiplies the count of everything that comes out. A count is rounded up and never goes under 1.

recipe:ScaleOutputs(factor: number): WaxRecipe
ParameterTypeDescription
factornumberA number above 0.

Returns WaxRecipe

Open in the Explorer

recipe:SetWork(millijoules)

Sets the work making the recipe once takes, in millijoules. By hand, which works at 1000 milliwatts, 2500 is two and a half seconds.

recipe:SetWork(millijoules: integer): WaxRecipe
ParameterTypeDescription
millijoulesintegerA whole number of 1 or more.

Returns WaxRecipe

Open in the Explorer

recipe:SetSeconds(seconds, bench?)

Sets how long making the recipe once takes at a bench, before talents and upgrades: recipe:SetSeconds(5, "Fabricator"). The work is worked out from how fast that bench is, so at a faster bench of the recipe it takes less than that. Without a bench the recipe's own benches are used. When they work at different speeds it raises an error that names the speeds: say which bench is meant, or use ScaleTime.

recipe:SetSeconds(seconds: number, bench?: string): WaxRecipe
ParameterTypeDescription
secondsnumberA number above 0.
bench (optional)string

Returns WaxRecipe

Open in the Explorer

recipe:ScaleTime(factor)

Multiplies the work making the recipe once takes: recipe:ScaleTime(0.5) makes it twice as fast at every bench.

recipe:ScaleTime(factor: number): WaxRecipe
ParameterTypeDescription
factornumberA number above 0.

Returns WaxRecipe

Open in the Explorer

recipe:SetBenches(benches)

Sets where the recipe is made: recipe:SetBenches({ "Hand", "Crafting_Bench" }). A bench is named by the item that is the bench, by its recipe set, or "Hand" for what a player makes without one. One name may stand without the list. The crafting tab builds its list again when the frame ends, if it is the tab that shows. A bench screen that is open is not built again in this version.

recipe:SetBenches(benches: string|string[]): WaxRecipe
ParameterType
benchesstring | string[]

Returns WaxRecipe

Open in the Explorer

recipe:AddBench(bench)

Adds a bench to where the recipe is made. It does nothing when the recipe is made there already.

recipe:AddBench(bench: string): WaxRecipe
ParameterType
benchstring

Returns WaxRecipe

Open in the Explorer

recipe:RemoveBench(bench)

Takes a bench away from where the recipe is made. It raises an error when the recipe is not made there, and when it would then be made nowhere: use Hide for that. On a list of recipes, the ones that are not made there are left as they are.

recipe:RemoveBench(bench: string): WaxRecipe
ParameterType
benchstring

Returns WaxRecipe

Open in the Explorer

recipe:MoveTo(bench)

Makes one bench the only place the recipe is made: recipe:MoveTo("Hand").

recipe:MoveTo(bench: string): WaxRecipe
ParameterType
benchstring

Returns WaxRecipe

Open in the Explorer

recipe:SetRequirement(node)

Sets the node of the tech tree that has to be researched before the recipe can be made, by the node's row name in D_Talents. recipe:SetRequirement(nil) means no research is needed: on the host the recipe was then listed and made by a character who had not researched it.

recipe:SetRequirement(node: string?): WaxRecipe
ParameterType
nodestring?

Returns WaxRecipe

Open in the Explorer

recipe:Hide()

Takes the recipe off the lists players choose from. The crafting tab and the game's own list of a bench's recipes were seen to drop it. A bench that chooses its recipe by itself was not tried. It does not stop the recipe from being made. One that is being made is finished, and the host still makes it when it is asked for by name, which is all a player's game sends. The one thing the host was seen to check is research.

recipe:Hide(): WaxRecipe

Returns WaxRecipe

Open in the Explorer

recipe:Show()

Puts the recipe back on the lists it was taken off with Hide.

recipe:Show(): WaxRecipe

Returns WaxRecipe

Open in the Explorer

recipe:Reset()

Takes back everything this mod changed in the recipe. What other mods changed stays.

recipe:Reset(): integer

Returns integer (count) How many fields were taken back.

Open in the Explorer

WaxRecipeList

Recipes found together, in the order the game has them. #list is how many, list[1] the first, and it holds the recipes it was made with, whatever changes later. It has every function of a recipe that changes one, and does it to each recipe of the list: game.Recipes:At("Fabricator"):ScaleTime(0.5). Each returns the list. A recipe the change does not apply to is left as it is where the function says so. When a change is refused for some recipes, the others are still changed, and then an error says how many were not and why the first was not. Inside a task, work on many recipes pauses when it has used a millisecond of a frame and goes on in the next. Anywhere else it is all done before the function returns, which for hundreds of recipes is a frame the player can notice.

You get one from game.Recipes:All, game.Recipes:At, game.Recipes:Making, game.Recipes:Using, game.Recipes:Find. Below, recipeList stands for one of these.

Open in the Explorer

PropertyTypeDescription
any other key ([integer])WaxRecipeOne crafting recipe: a row of D_ProcessorRecipes. game.Recipes:Get("Stone_Axe") gives one. Reading a field reads the game's table, so it is always what the table holds now. The lists it gives are yours to change: that changes nothing in the game. One exception keeps a mod steady while it is being reloaded: what the mod itself wrote before the reload is left out, so if recipe.Work > 2000 then recipe:SetWork(2000) end does the same thing each time. Every function that changes the recipe returns the recipe, so changes can follow one another: game.Recipes:Get("Stone_Axe"):SetInputs({ Stone = 1 }):SetSeconds(1). A change is written before the function returns. It belongs to the mod that makes it and is put back when the mod unloads, as every change of game.Data is. What two mods do to one recipe is worked out in the order the mods load. SetInput, RemoveInput, the Scale functions, AddBench, RemoveBench and the output functions build on what an earlier mod did. SetInputs, SetBenches, MoveTo, SetWork, SetSeconds, SetRequirement, Hide and Show replace it, and game.Data:Conflicts() lists a field where that hides another mod's different value. What a change does to something that is being made or waiting in a queue, as it was seen on the host: a new time counts from the next moment, so what is half done by the old time may be nearly done, or done, by the new one. What is taken and what comes out is read from the recipe when the making ends, as the recipe is then. Nothing is taken before that. As soon as the player cannot pay what the recipe takes, the making is dropped without a message, and nothing is lost. So change recipes when the mod loads if a player should never see one change while it is being made. Names of items, benches, recipes and nodes are matched without regard to letter case. A name the game does not have raises an error that suggests the nearest ones. This version of Wax cannot make every list of a recipe longer or shorter. The outputs keep their number: each can become another item and another count. The resources keep their number too. The items, the tags and the benches of a recipe can be added to and taken from while the list has 4 entries or fewer, before and after. A change that is refused raises an error that says so, and changes nothing.

recipeList:Each(fn)

Calls fn with each recipe of the list, in order.

recipeList:Each(fn: fun(recipe: WaxRecipe)): WaxRecipeList
ParameterType
fnfun(recipe: WaxRecipe)

Returns WaxRecipeList

Open in the Explorer

recipeList:GetNames()

The names of the recipes in the list.

recipeList:GetNames(): string[]

Returns string[]

Open in the Explorer

recipeList:SetInputs(inputs)

Sets the items each recipe of the list takes, as Recipe:SetInputs does for one.

recipeList:SetInputs(inputs: table<string, integer>|table[]): WaxRecipeList
ParameterType
inputstable<string, integer> | table[]

Returns WaxRecipeList

Open in the Explorer

recipeList:SetInput(name, count)

Sets how many of one thing each recipe of the list takes, as Recipe:SetInput does for one. A recipe that does not take it yet gets it added, and counts as refused where it cannot be added.

recipeList:SetInput(name: string, count: integer): WaxRecipeList
ParameterType
namestring
countinteger

Returns WaxRecipeList

Open in the Explorer

recipeList:RemoveInput(name)

Takes one item or tag out of each recipe of the list that takes it, as Recipe:RemoveInput does for one. The recipes that do not take it are left as they are.

recipeList:RemoveInput(name: string): WaxRecipeList
ParameterType
namestring

Returns WaxRecipeList

Open in the Explorer

recipeList:ScaleInputs(factor)

Multiplies every count each recipe of the list takes, as Recipe:ScaleInputs does for one.

recipeList:ScaleInputs(factor: number): WaxRecipeList
ParameterType
factornumber

Returns WaxRecipeList

Open in the Explorer

recipeList:ScaleInput(name, factor)

Multiplies the count of one item, tag or resource in each recipe of the list that takes it, as Recipe:ScaleInput does for one. The recipes that do not take it are left as they are.

recipeList:ScaleInput(name: string, factor: number): WaxRecipeList
ParameterType
namestring
factornumber

Returns WaxRecipeList

Open in the Explorer

recipeList:SetOutputs(outputs)

Sets what comes out of each recipe of the list, as Recipe:SetOutputs does for one.

recipeList:SetOutputs(outputs: table<string, integer>|table[]): WaxRecipeList
ParameterType
outputstable<string, integer> | table[]

Returns WaxRecipeList

Open in the Explorer

recipeList:SetOutput(name, count)

Sets how many of one item come out of each recipe of the list, as Recipe:SetOutput does for one. In this version a recipe that does not give the item counts as refused.

recipeList:SetOutput(name: string, count: integer): WaxRecipeList
ParameterType
namestring
countinteger

Returns WaxRecipeList

Open in the Explorer

recipeList:ScaleOutputs(factor)

Multiplies the count of everything that comes out of each recipe of the list, as Recipe:ScaleOutputs does for one.

recipeList:ScaleOutputs(factor: number): WaxRecipeList
ParameterType
factornumber

Returns WaxRecipeList

Open in the Explorer

recipeList:SetWork(millijoules)

Sets the work making each recipe of the list once takes, as Recipe:SetWork does for one.

recipeList:SetWork(millijoules: integer): WaxRecipeList
ParameterType
millijoulesinteger

Returns WaxRecipeList

Open in the Explorer

recipeList:SetSeconds(seconds, bench?)

Sets how long making each recipe of the list once takes at a bench, as Recipe:SetSeconds does for one. Without a bench each recipe goes by its own benches, and one whose benches work at different speeds is refused.

recipeList:SetSeconds(seconds: number, bench?: string): WaxRecipeList
ParameterType
secondsnumber
bench (optional)string

Returns WaxRecipeList

Open in the Explorer

recipeList:ScaleTime(factor)

Multiplies the work making each recipe of the list once takes, as Recipe:ScaleTime does for one.

recipeList:ScaleTime(factor: number): WaxRecipeList
ParameterType
factornumber

Returns WaxRecipeList

Open in the Explorer

recipeList:SetBenches(benches)

Sets where each recipe of the list is made, as Recipe:SetBenches does for one.

recipeList:SetBenches(benches: string|string[]): WaxRecipeList
ParameterType
benchesstring | string[]

Returns WaxRecipeList

Open in the Explorer

recipeList:AddBench(bench)

Adds a bench to where each recipe of the list is made, as Recipe:AddBench does for one. The recipes that are made there already are left as they are.

recipeList:AddBench(bench: string): WaxRecipeList
ParameterType
benchstring

Returns WaxRecipeList

Open in the Explorer

recipeList:RemoveBench(bench)

Takes a bench away from each recipe of the list that is made there, as Recipe:RemoveBench does for one. The recipes that are not made there are left as they are.

recipeList:RemoveBench(bench: string): WaxRecipeList
ParameterType
benchstring

Returns WaxRecipeList

Open in the Explorer

recipeList:MoveTo(bench)

Makes one bench the only place each recipe of the list is made, as Recipe:MoveTo does for one.

recipeList:MoveTo(bench: string): WaxRecipeList
ParameterType
benchstring

Returns WaxRecipeList

Open in the Explorer

recipeList:SetRequirement(node)

Sets the node of the tech tree that has to be researched before each recipe of the list can be made, as Recipe:SetRequirement does for one.

recipeList:SetRequirement(node: string?): WaxRecipeList
ParameterType
nodestring?

Returns WaxRecipeList

Open in the Explorer

recipeList:Hide()

Takes each recipe of the list off the lists players choose from, as Recipe:Hide does for one.

recipeList:Hide(): WaxRecipeList

Returns WaxRecipeList

Open in the Explorer

recipeList:Show()

Puts each recipe of the list back on the lists it was taken off with Hide, as Recipe:Show does for one.

recipeList:Show(): WaxRecipeList

Returns WaxRecipeList

Open in the Explorer

recipeList:Reset()

Takes back everything this mod changed in the recipes of the list.

recipeList:Reset(): integer

Returns integer (count) How many fields were taken back.

Open in the Explorer

WaxRecipeInput

One item a recipe takes. The table is yours: changing it changes nothing in the game.

Open in the Explorer

FieldTypeDescription
ItemstringThe item's name: its row in D_ItemsStatic, spelled as the game spells it.
CountintegerHow many of it the recipe takes each time it is made.

WaxRecipeTag

One tag a recipe takes, such as "any raw meat": every item with that tag will do.

Open in the Explorer

FieldTypeDescription
TagstringThe tag's name: its row in D_CraftingTags.
CountintegerHow many items with that tag the recipe takes each time it is made.

WaxRecipeResource

One resource a recipe takes, such as water or biofuel.

Open in the Explorer

FieldTypeDescription
ResourcestringThe resource's name: its row in D_IcarusResources.
UnitsintegerHow many units of it the recipe takes each time it is made.

WaxRecipeOutput

One thing that comes out of a recipe.

Open in the Explorer

FieldTypeDescription
Itemstring?The item's name. nil when the game has no item for what the recipe names.
CountintegerHow many come out each time the recipe is made.
TemplatestringThe row of D_ItemTemplate the recipe names. Most items have one template, of their own name. A few have more, such as an empty and a full waterskin.

WaxRecipeAddOptions

What game.Recipes:Add takes beside the name.

Used by game.Recipes:Add.

Open in the Explorer

OptionTypeDescription
like (required)stringThe recipe the new one is a copy of. Whatever is not given below stays as that recipe has it.
inputstableThe items it takes, as SetInputs takes them.
outputstableWhat comes out, as SetOutputs takes it.
benchesstring | string[]Where it is made, as SetBenches takes it.
secondsnumberHow long making it once takes, as SetSeconds takes it without a bench. Give seconds or work, not both.
workintegerThe work making it once takes, as SetWork takes it.
requirementstring | falseThe node of the tech tree it needs, or false for no research.
hiddenbooleanTrue to start hidden.

WaxCraftingRefreshOptions

What game.Crafting:Refresh takes.

Used by game.Crafting:Refresh.

Open in the Explorer

OptionTypeDescription
listsbooleanFalse when only what recipes take, give and how long they take changed. The tab then asks its recipes again, which costs next to nothing. Without it the tab's list is built again, as it has to be when a recipe was hidden, moved to another bench or given another requirement.
recipesstring[]The recipes that changed. With lists = false, the recipe the player has chosen is chosen again only when it is one of them. Without it, it is chosen again whichever it is.

On this page