Now item flags of the upgraded item can be customized
Now item flags of the upgraded item can be customized.
Changes in upgrades.yml
Code (YAML):
upgrades: '1':
from: # 'from.item' is the item that will be upgraded to another item. item: APPLE
# 'from.name' is the name of the item that will be upgraded to another item. name: "" # How many item should we take if player wants to upgrade their item. (default is 1) amount: 1
to: # 'to.item' is the item that will be the upgraded item from a previous item. # Use 'oraxen:item_id_here' for custom textured items by Oraxen plugin. # Use 'itemsadder:item_id_here' for custom textured items by ItemsAdder plugin. # Use 'ecoitems:item_id_here' for custom items by EcoItems plugin. item: GOLDEN_APPLE
# 'to.item' is the new item's name which will be the upgraded from a previous item. # %price% and %chance% placeholders can be used in the name and lore section. name: "&e&lUpgraded Apple" # 'to.lore' is the new item's lore which will be the upgraded from a previous item. lore: -
"" -
"&7A golden apple that is upgraded" -
"&7with a chance of %chance%%" # The amount of the upgraded item. This option is also optional, by default the value is 1. amount: 1
# The item flags of the upgraded item. By default, item flags are empty. # Values: HIDE_ENCHANTS, HIDE_ATTRIBUTES, HIDE_UNBREAKABLE, HIDE_DESTROYS, HIDE_PLACED_ON and HIDE_POTION_EFFECTS item-flags: []