Hi there. Now you can use custom model data and player placeholders with PlaceholderAPI.
Example config with usage of new features.
Code (YAML):
# Drinkable potion example
# potion id. Needs to be unique.
drink
:
# You can use placeholders in display name and lore.
displayName
:
"&cDrink - %player_name%"
lore
:
-
"&5Drink potion attempt"
# Will potion be splash or drinkable?
isSplash
: false
# If it is drinkable, will it delete the bottle?
deleteBottle
: true
# Cooldown in seconds.
cooldown
: 10
data
:
# Custom model data. You can use this for custom textures.
customModelData
: 1
# Potion type. Things like Speed, Strength etc...
# Do not put prefixes like STRONG, LONG etc. Just put the plain old potion type and configure level/time below.
# List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html
potionType
:
"STRENGTH"
# This option is needed if you need to apply original potion effect.
# For example if potion type is strength, strength effect will be applied with the commands.
originalEffect
: false
# If you want to extend the potion time same as brewing, you can use this option.
extended
: false
# If you want to upgrade the potion same as brewing (Level 2), you can use this option.
upgraded
: false
particle
:
# Particle system.
# List: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
enabled
: false
type
:
""
# Time in seconds.
time
: 200
# Particle amount per second. You have to try and test this setting.
amount
: 20
commands
:
# If it is splash, you can remove this line.
drinkingCommands
:
-
"msg %player% ae"
# If it is drinkable, you can remove this line.
splashCommands
:
-
""
afterEffect
:
# After Effect feature.
enabled
: true
# Time in seconds.
time
: 5
commands
:
-
"give %player% diamond 5"