Documentation/Workflows

Exporting Code

Getting your effect into Minecraft.

Last updated: 2024-03-20Version: 2.0.0

How do I get the code?

Click the **Generate Code** button in the Left Toolbar (Code icon) or at the bottom of the Settings Panel.

A panel will appear with the generated script.

How does code generation work?

AuraFX primarily generates **MythicMobs (YAML)** configuration.

1. **Lines**: It converts shapes into mathematical lines (e.g., `particleline`, `particleorbital`).

2. **Optimization**: It calculates offsets (`fo`, `so`, `uo`) automatically.

3. **Action Recording**: If you recorded actions, it generates a frame-by-frame animation sequence using offsets and delays.

4. **Formats**: You can also export as **Vanilla Commands** (McFunction) or **Datapack** (via the sidebar settings).

Can I import existing skills?

Importing complex MythicMobs skills back into AuraFX is **experimental**.

Simple shapes may import correctly, but complex manual logic written outside AuraFX might not render perfectly.