> For the complete documentation index, see [llms.txt](https://groupmoro.gitbook.io/groupmoro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://groupmoro.gitbook.io/groupmoro/smartitemcreator/create-items/potions.md).

# Potions

This page describes how to create custom potions.

### items.yml

```
items:

  speed_potion:
    material: POTION
    amount: 1
    color: white
    display_name: "&dPotion of Speed"
    lore:
      - "&7It makes you faster!"
    potion_effects:
      SPEED:
        duration: 400
        amplifier: 1
      JUMP_BOOST:
        duration: 200
        amplifier: 2
        
```

<table><thead><tr><th>Entries</th><th>Descriptions</th></tr></thead><tbody><tr><td><pre><code>speed_potion:
</code></pre></td><td>it is the name we give to the object, which can then be called with the command: /smartitemcreator &#x3C;item><br>&#x3C;item> = speed_potion</td></tr><tr><td><pre><code>material: POTION
</code></pre></td><td>You can select between three types of potion:<br>POTION, SPLASH_POTION, LINGERING_POTION</td></tr><tr><td><pre><code>amount: 1
</code></pre></td><td>Amount of potions that will be given to the player</td></tr><tr><td><pre><code>color: white
</code></pre></td><td>you can customize the color of the potion by entering the name of the color, or by applying an RGB color (go to the bottom of the page for more information)</td></tr><tr><td><pre><code>display_name: "&#x26;dPotion of Speed"
</code></pre></td><td>Name to apply to the object displayed in game</td></tr><tr><td><pre><code>lore:
  - "&#x26;7It makes you faster!"
</code></pre></td><td>Lore to be applied to the item displayed in game</td></tr><tr><td><pre><code>    potion_effects:
      SPEED:
        duration: 400
        amplifier: 1
      JUMP_BOOST:
        duration: 200
        amplifier: 2
</code></pre></td><td>on "potion_effects" you must enter one or more effects to apply to the potion. (go to the bottom of the page for more information)<br>"duration" is the duration of the potion in ticks (20 ticks = 1 second)<br>"amplifier" is the amplifier of the effect, it increases its effects</td></tr></tbody></table>

***

**RGB colors**

RGB color is made up of three numbers that identify its various shades. In this example, the color light blue has been inserted

<pre><code><strong>color: "42,224,215"
</strong></code></pre>

{% embed url="<https://rgbcolorpicker.com/>" %}

<figure><img src="https://614769108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKrHip8O2NBhNhXdFBpA%2Fuploads%2F1mS6obw4V2a76bs7BDlQ%2F2025-03-22_19.07.37.png?alt=media&amp;token=92f94f9e-84e1-494d-8981-97b6a1f595ed" alt=""><figcaption></figcaption></figure>

***

**Effects**

A list of all the effects applicable to the player can be found on the site below

{% embed url="<https://minecraft.fandom.com/wiki/Effect>" %}
