❓Multiple recepies configuration

πŸ§ͺ How to Create Custom Recipes

Learn how to create and configure custom recipes using the new Shared.MultipleRecipes system. This flexible system allows you to create multiple unique recipes for a single crafting table without using the visual table generator.

πŸ€” Why Use Custom Recipes?

The Shared.MultipleRecipes system offers several advantages over the traditional table generator:

Benefits:

  • Multiple Recipes Per Table: Add 10, 20, or even more different recipes to a single crafting table

  • No Visual Configuration Required: Skip the complex prop positioning and animation setup

  • Easy Management: Add, remove, or modify recipes with simple configuration changes

  • Mix & Match: Combine different recipe types at the same table

  • Quick Setup: Create recipes in minutes instead of hours

  • Reusable Tables: Use existing table designs with new recipes

Perfect For:

  • Alchemy stations with multiple potion types

  • Cooking tables with various food recipes

  • Weapon crafting benches with different weapons

  • Any scenario where you need recipe variety without visual complexity


1

Understanding the Structure

The custom recipe system consists of two main parts:

1. Recipe Definition (configs/shared.lua)

2. Table Assignment (configs/server.lua)

2

Creating Your First Custom Recipe

Let's create a simple health potion recipe:

Step 1: Add Recipe to configs/shared.lua

Open configs/shared.lua and find or create the Shared.MultipleRecipes section:

Step 2: Configure Table in configs/server.lua

Add or modify a table to use your new recipe:

3

Adding Multiple Recipes to One Table

Let's create a complete alchemy station with multiple potion types:

Multiple Recipe Example:

Assign All Recipes to One Table:

4

Recipe Configuration Options

Required Fields:

Field
Description
Example

itemsNeeded

Array of required items

{ name = "herb", amount = 2 }

rewards

Array of items given

{ name = "potion", amount = 1 }

tableUid

Visual table reference

"herbal_table"

Item Structure:

Available Table UIDs created by us:

Use these tableUid values to reference existing table visuals:

  • "herbal_table" - Alchemy table with cauldron

  • "spices" - Simple crafting table

5

Advanced Recipe Examples

Cooking Station Example:

Weapon Crafting Example:

6

Testing Your Recipes

1. Restart the Script

After adding your recipes, restart the resource:

2. Test In-Game

  1. Go to your configured table location

  2. Ensure you have the required items in inventory

  3. Interact with the table

  4. Your custom recipes should appear in the crafting menu

3. Troubleshooting

Recipe Not Showing:

  • Check that recipeUids in server config matches your recipe names exactly

  • Verify the table coordinates are correct

  • Ensure tableUid references an existing table in Shared.Recepie

Items Not Working:

  • Confirm item names match your inventory system exactly

  • Check item amounts are correct

  • Verify players have the required items

7

Best Practices

Recipe Organization:

Naming Convention:

  • Use descriptive, unique recipe UIDs

  • Include category/type in the name: "weapon_iron_sword", "potion_health_large"

  • Avoid spaces, use underscores: "my_recipe" not "my recipe"

Recipe Balance:

  • Start with simple recipes (2-3 ingredients)

  • Gradually add complexity for rare items

  • Consider ingredient availability in your server economy

  • Test crafting times and player experience


🎯 Quick Start Template

Copy this template to get started quickly:

Replace the placeholders with your actual values and you're ready to go!


πŸ“ Summary

The custom recipe system gives you the power to create rich, varied crafting experiences without the complexity of visual table generation. Use it to:

  • Quickly add multiple recipes to existing tables

  • Create themed crafting stations (alchemy, cooking, smithing)

  • Experiment with different ingredient combinations

  • Scale your crafting system as your server grows

Start simple with a few recipes and expand as you become comfortable with the system. Happy crafting! πŸŽ‰

Last updated