# Creating your first crate

## Guide

\#1 Create a **YML** file in the crates folder (For example tutorial.yml)

\#2 Paste example settings there

<pre class="language-yaml"><code class="lang-yaml"><strong>display-name: "&#x26;bTest"
</strong><strong>key:
</strong>  material: TRIPWIRE_HOOK # Possible values: MATERIAL; itemsadder:ItemId; oraxen:ItemId
  display-name: "&#x26;bTutorial &#x26;fKey"
  lore:
    - "&#x26;7This is a tutorial key"
model: modelengine:crate6 # Possible values: modelengine:ModelID
rewards:
  1:
    item:
      material: "DIAMOND"
      display-name: "§bExample Reward"
      lore:
        - "&#x26;7This is an example reward"
    chance: 10
    give-item: true # Should it give the reward item when a player wins this reward?
    # What should happen when a player win the reward?
    # Possible actions: [message]; [command]
    # Available placeholders: %player%
    actions: 
      - "[message] §fTest Action! You have won that!"
      - "[command] cmi broadcast Command action also works!"
preview: # Preview GUI of the crate
  reward-slots: # Available slots for rewards
    - 9
    - 10
    - 11
    - 12
    - 13
    - 14
    - 15
    - 16
    - 17
  items: # Cosmetic items of the GUI
    border:
      material: BLACK_STAINED_GLASS_PANE
      display-name: " "
      slots:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
</code></pre>

\#3 Reload the plugin using /acrates reload

\#4 Give yourself the crate item by using **/acrates crate give \<cratename>** and place the crate

\#5 Now you have functional crate!&#x20;

If you want to make your Crate more **special,** check following guides:

{% content-ref url="setting-up-a-crate" %}
[setting-up-a-crate](https://mrlarkyy.gitbook.io/aquaticcrates-v2/guides/setting-up-a-crate)
{% endcontent-ref %}
