# Grid Recipe Asset

## Grid Recipe Asset

### Creating Grid Recipes

To create a new Grid Recipe asset:\
Right-click inside your Project folder →\
**Create > Game Creator > Inventory Extended > Grid Recipe**

***

### Overview

Grid Recipes allow you to create **layout-based crafting systems**, where the position of items matters.

This is similar to systems like Minecraft, where items must be placed in a specific pattern to produce a result.

***

### Info Settings

Each Grid Recipe includes customizable display information:

* **Title**
* **Description**
* **Sprite**
* **Color**

***

### Grid Configuration

You can define the size of the crafting grid:

* **Grid Width**
* **Grid Height**

#### Example

* 3x3 grid → Standard crafting bench layout
* 2x2 grid → Inventory crafting setup

Once configured, the grid will generate input slots based on the selected size.

### Crafting Bench Grid Size

The crafting grid size is determined by the crafting bench.\
To change the grid size, modify the bench’s Bag Width and Bag Height.

Example\
3x3 (Width: 3, Height: 3) → Standard crafting bench grid\
2x2 (Width: 2, Height: 2) → Smaller crafting grid

The grid will automatically match the configured bag size.

This allows different crafting stations to support different grid sizes.

***

### Input Items

Each grid slot can contain an item requirement.

* Items must be placed in the **exact same position** in the crafting UI
* The layout must match the recipe for crafting to succeed

#### Item Configuration

Each input item includes a settings button where you can define:

* **Amount**\
  Required quantity of the item
* **Properties**\
  Require specific item properties (e.g., High Quality)

This allows recipes like:

* Require **High Quality Carrot x2** in a specific slot

***

### Output Items

Grid Recipes use an output system similar to dismantling and smelting, but simplified.

Each output item includes:

* **Amount**\
  Fixed or configurable amount
* **Properties**\
  Applied to the crafted item

Example:

* Craft a sword that always has **High Quality**

***

### Craft Conditions

Each Grid Recipe includes a **Can Craft** condition.

* Determines whether the recipe can be crafted
* Runs before crafting is allowed

#### Example Uses

* Check if the player is using an upgraded crafting bench
* Require specific game states or progression

***

### On Craft

Each Grid Recipe includes an **On Craft** instruction.

* Runs every time the recipe is successfully crafted
* Can be used for:
  * Playing effects or sounds
  * Granting experience
  * Triggering additional logic

***

### Recommended Usage

* Use Grid Recipes for pattern-based crafting systems
* Combine with item properties for deeper crafting requirements


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fullscreen.no/info/game-creator-2-assets/inventory-extended/grid-recipe-asset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
