# Blacksmith System

We use DeluxeMenus to power this blacksmith equipment-forging system. Essentially, there are three main menus that lead to smaller sub-menus, each dedicated to a single recipe for a specific piece of equipment.

When a player clicks **CRAFT**, the system checks their requirements: such as items, currency, and other conditions using placeholders from PlaceholderAPI and the requirements feature in DeluxeMenus.

If all conditions are met, the player receives the crafted item, and the required items, coins, and other resources are deducted.

### **Basic Blacksmith Workflow:**

{% stepper %}
{% step %}

#### Open Main Menu (/blacksmith)

The player opens one of the **three main menus (Tools & Weapons, Equipments, Misc)** in the blacksmith menu.

Each menu item button links to its own set of sub-menus (Item Menu).
{% endstep %}

{% step %}

#### Navigate to Sub-Menu (Item Menu)

The player selects a sub-menu corresponding to a **specific equipment recipe**.
{% endstep %}

{% step %}

#### Select CRAFT button

The player clicks the **CRAFT** button for the chosen recipe.
{% endstep %}

{% step %}

#### Check Requirements

The system verifies all player requirements, including

* Required items in inventory.
* Sufficient in-game currency (coins).
* Any other specific conditions.

These checks are performed using **PlaceholderAPI placeholders** and **DeluxeMenus requirements**.
{% endstep %}

{% step %}

#### If Requirements Are Met

Give the player the crafted equipment.

Deduct the required items, coins, and any other resources.
{% endstep %}

{% step %}

#### If Requirements Are Not Met

Notify the player of missing items, insufficient currency, or unmet conditions.
{% endstep %}
{% endstepper %}
