-
Added customizable item equipment slots by category. Possible values: HAND, OFF_HAND, HEAD, CHEST, LEGS, FEET.
-
Added on-equip, on-unequip, on-invalid-slot item triggers.
-
Fixed stats no updating immediately when equipping armor by right clicking it while in hand.
Config Changes:
Code (YAML):
# The item categories and active equipment slots
item-categories:
- item # By default all equipment slots are valid
- sword equip=HAND
- shield equip=HAND, OFF_HAND
- pickaxe equip=HAND
- axe equip=HAND
- shovel equip=HAND
- hoe equip=HAND
- farming_tool equip=HAND
- fishing_rod equip=HAND
- helmet equip=HEAD
- chestplate equip=CHEST
- leggings equip=LEGS
- boots equip=FEET
- ingredient equip=none
# The default item settings (Use 'key: none' to disable options under this section)
item-defaults:
breaking-power: 1 # Breaking power of 0 is the same as an empty hand
category: item
rarity: common
name: '&f{item_name_tc}'
name-by-rarity:
common: '&f{item_name_tc}'
uncommon: '&a{item_name_tc}'
rare: '&9{item_name_tc}'
epic: '&d{item_name_tc}'
legendary: '&6{item_name_tc}'
description-color: '&7' # Only applied if the description doesn't have a color
lore:
- '{item_lore:breaking_power}'
- '{item_lore:stats}'
- '{item_lore:description}'
- '{item_lore:enchants}'
- '{item_lore:abilities}'
- '{item_lore:crafted_by}'
- '{item_lore:rarity}'
on-equip: sendActionbar &e&lEQUIPPED {item_category_uc} align=left duration=1s # uc = UPPERCASE
# on-unequip: sendActionbar &cUNEQUIPPED {item_category_uc} align=left
# on-invalid-slot: sendActionBar &cINVALID EQUIPMENT align=left