# ® LootChest Type registration

You can register your own lootchest type using "registrations.yml".

### 1. File overview

```
regular:
  animation: regular
mystic:
  animation: mystic
spooky:
  animation: spooky
```

### 2. Register your own type

The registration format:

```
<TypeID>: #The typeID is your desire.
  animation: <animationID>
```

{% hint style="info" %}
There can be more field in the future but currently there is only "animation".
{% endhint %}

{% hint style="info" %}
Animation ID available: "regular", "mystic", "spooky"
{% endhint %}

### 3. After registration

That's not the end, you still have to do some works before function

#### 1. Make a config

Step 1: Navigate to "/lootchests" folder.

Step 2: Make a yml file named exactly same with the \<TypeID> above.

Step 3: Just configure it as tutorial from [this](https://twightlight.gitbook.io/hlootchest/configurations/lootchest-config)

#### 2. Add a template

Step 1: Navigate to your template file and open.

Step 2: Add template for new type:

```
<TypeID>:
  <Template settings>...
```

{% hint style="info" %}
You have to ensure you did everything right, or you can use setup menu for higher accuracy.
{% endhint %}

That's it! You have completely register your own type independent with others.
