v1.0.48 función
Ingredients that are not consumed, table duplication and recipe search
7cambios

Ingredients that are not consumed, table duplication and recipe search
7cambios

[02] Versión
Recipes can now require blueprints or tools that are never removed, any crafting table can be duplicated with its recipes and access, and players can search the recipe list. The console also tells you when a new version is out.
Nothing to do in the database. Your existing tables and recipes keep working as they are.
After replacing the files, run refresh before ensure qs-crafting (or restart the server). The resource has a new server file, and a plain restart keeps the old file list.
To mark an ingredient as not consumed, tick Not consumed next to it in the creator. For tables defined in Config.CraftingTables, add keepIngredients to the recipe:
ingredients = { steel = 80, blueprint_pistol = 1 },
keepIngredients = { 'blueprint_pistol' }
The player needs one of that item per craft, whatever the amount set, and it is never removed.
A duplicated table is saved without a position: place it in the world after saving.
Replace every file in the resource. If you edited any of these, merge your changes into the new version:
config/main.lua (documents the new keepIngredients option)types.lualocales/* (new texts)server/updater.lua is new and server/version.lua was removed.
Mark any ingredient as Not consumed in the creator, or use keepIngredients in the config, for blueprints and tools. The player must carry it to craft, but it is never removed.
A new Duplicate button in the creator copies a table with its recipes, access rules and blip settings. Place the copy in the world after saving.
Players can search recipes by name in the crafting menu, on both the recipes and weapons tabs.
On start, the server console shows your version, the latest one, what changed and how to update. It checks again every 30 minutes.
The creator now tells you whether the table was created or something went wrong.
Not consumed, duplicate, search and table creation messages.
Replaced by the new update notices.