# Basic Commands

Command system is somewhat more complex and after 3.3.0, we have completely overhauled the entire command structure. But in this section, i will give some basic command structure.

{% hint style="success" %}
You can use different executors: PLAYER and CONSOLE.
{% endhint %}

{% hint style="info" %}
You need to <mark style="color:red;">change variable</mark> according to the structure. Yeah i know it is weird, and we will change it one version after command overhaul update.

If your potion is splash: use "<mark style="color:yellow;">splashCommands</mark>".

If your potion is drinkable: use "<mark style="color:yellow;">drinkingCommands</mark>".
{% endhint %}

{% code title="Basic Example Structure" %}

```yaml
commands:
  # Commands to be executed after drinking the potion.
  drinkingCommands:
    '1':
      commands: 
        - give %player% diamond 5
      executor: CONSOLE
    '2':
      commands: 
        - msg %player% You drank the potion!
      executor: CONSOLE
```

{% endcode %}

{% hint style="danger" %}
If you will not use weight/chance command structure or do not care about execution order, you can just combine all commands into one list. But if you need to order the commands, you have to use separate orders as shown above.
{% endhint %}

Our now updated configuration:

<pre class="language-yaml"><code class="lang-yaml">flight:
  displayName: '&#x26;6Flight Potion'
  lore:
    - '&#x26;9Food &#x26; Drinks'
    - '&#x26;9Flight I (04:00)'
  isSplash: false
  deleteBottle: false
<strong>  instantDrink: false
</strong>  data:
    potionType: LUCK
  particle:
    enabled: true
    type: EFFECT
    time: 240
    amount: 50
  commands:
    drinkingCommands:
      '1':
        commands: 
          - fly %player% enable
          - w %player% You get this whimsical feeling flowing through your body.. you're glowing.. and you can fly!!
          - effect give %player% minecraft:glowing 300
        executor: CONSOLE
</code></pre>
