AddRecipeTab

Description
AddRecipeTab adds a crafting tab to the game. This is most typically used to add crafting tabs for specific characters, or for specific crafting structures.

Parameters

 * - The name of the crafting tab.
 * - The sort order of this recipe tab. Determines where on the crafting tab this recipe tab gets placed. Using 999 will put it on the bottom like most custom recipe tabs.
 * - The .xml Atlas file associated with the rec_icon.
 * - The .tex file containing the recipe tab's icon.
 * - The builder tag a character must have if only specific characters can use it. Can be set to nil to allow all characters to access it.
 * - If set to true, this crafting tab requires a crafting station to be used. If set to false, or left blank, a crafting station will not be required.

Return Value
A table is generated using the parameters above, and is added to the CUSTOM_RECIPETABS table. Returns the table generated for this recipe tab.

Examples
Let's take Wickerbottom's Books tab for example. If we wanted to generate the same tab we would call the function using:

This accomplishes the following:
 * Names the tab "BOOKS"
 * Gives the tab the highest sort_order, putting it on the bottom of the crafting bar.
 * Provides no atlas associated with the icon.
 * Sets the icon for the crafting tab to "tab_book.tex"
 * Makes it so a character must have the "bookbuilder" tag in order to access this crafting tab.

Now let's take the Ancient Tab for example. It is accessed by standing next to an Ancient Pseudoscience Station. If we wanted to generate a similar tab, we would call the function using:

This accomplishes the following:
 * Names the tab "ANCIENT"
 * Gives the tab a sort_order of 100 which is second to last on the crafting bar. This puts it above character-specific tabs which typically have sort_order 999.
 * Provides no atlas associated with the icon.
 * Gives the crafting tab "tab_crafting_table.tex" as its icon, which looks like the Ancient Pseudoscience Station.
 * Makes it so the crafting tab is only available when the player stands next to the appropriate crafting station.