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 can use different executors: PLAYER and CONSOLE.
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 5executor:CONSOLE'2':commands: - msg %player% You drank the potion!executor:CONSOLE
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.
Our now updated configuration:
flight:displayName:'&6Flight Potion'lore: - '&9Food & Drinks' - '&9Flight I (04:00)'isSplash:falsedeleteBottle:falseinstantDrink:falsedata:potionType:LUCKparticle:enabled:truetype:EFFECTtime:240amount:50commands: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 300executor:CONSOLE