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.

You need to change variable 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 "splashCommands".

If your potion is drinkable: use "drinkingCommands".

Basic Example Structure
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

Our now updated configuration:

flight:
  displayName: '&6Flight Potion'
  lore:
    - '&9Food & Drinks'
    - '&9Flight I (04:00)'
  isSplash: false
  deleteBottle: false
  instantDrink: false
  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

Last updated