This addon provides an extra functionality in controlling which custom enchantments will appear in a treasured item (found in a treasure chest, villager trading, raid-drops, and fishing).

Once this addon is installed and enabled, you can control which custom enchantments appear in a treasured item using the following config option in each custom enchantment's xxxx_config.yml:

for example (for Laser enchant)

Potions:
  Laser:
    ...
    is_fishing: true
    is_villagertrade: true
    is_entitydrop: true # for raid drop
    is_chesttreasure: true # for treasure chests
    ...

without TEAddon-Treasure addon, these options do nothing.

Installation:
To install this addon, just place TEAddon-Treasure-x.x.x.jar in 'plugin/TokenEnchant/addons' folder and restart the server or do '/te reload'.

Config:

Addons:
  Treasure:
    defaultFlag: true
    event_map:
      PlayerFishEvent: "LOWEST"
      VillagerAcquireTradeEvent: "LOWEST"
      EntityDeathEvent: "LOWEST"