Basic Properties
Basic Properties
These are simple properties, such as name, lore etc..
Variable
Decription
Example Value
displayName
The name of potion item. Placeholders can be used.
&cDrink - %player_name%
lore
Lore of potion item. Placeholders can be used.
- '&5Drink potion attempt'
isSplash
Will potion be splash or drinkable?
true/false
deleteBottle
If it is drinkable, will it delete the bottle?
true/false
instantDrink
If you want to make it instant drinkable, aka right click consume, you can use this option.
true/false
cooldown
Cooldown in seconds. [Optional]
10
I am using flight potion as our example. Now, configuration should look like this.
flight:
displayName: '&6Flight Potion'
lore:
- '&9Food & Drinks'
- '&9Flight I (04:00)'
isSplash: false
deleteBottle: false
instantDrink: false
# 8 minute cooldown
cooldown: 480
Last updated