# One Click Convert Tool

LogicBlock 1.2.0 includes a conversion tool that allows you to convert existing Trigger or Actions logic into reusable Block Lists. This lets you move scene-based logic into Blocks without rebuilding instruction chains.

### Opening the Tool

Right-click a **Trigger** or **Actions** component and select:

**Convert to LogicBlock Instruction List**

This opens the conversion window.

### Configuring the New List

Inside the conversion window, you can:

* Select the **target Block** where the list will be created.
* Set the **list name** (defaults to the GameObject name).
* Choose an **icon and color** for easier identification.

### Reference Deduplication

The tool automatically detects duplicate reference values and merges them into a single reference.\
For example, if multiple instructions use the same number value, only one reference will be created and reused.

> GameObject references cannot be deduplicated.

### Automatic Instruction Replacement

After conversion:

* A **Run Instruction Block List** instruction is added.
* The instruction is automatically linked to the selected Block and new list.

### Reference Migration

The tool attempts to preserve existing values by:

* Assigning previous instruction values to new references.
* Updating instructions inside the Block to use those references.

### Important Notes

Converting instruction lists into ScriptableObject-based Block Lists is complex and may contain edge cases. Some instructions, values, or references may require manual adjustment after conversion.
