By clicking the corresponding enchantment book in the GUI, you can increment the enchantment level by left-clicking, right-clicking or middle-clicking the corresponding enchantment book in the GUI. The levels of increment can be configured (for each left, right and middle clicking) in the config file.
If the increment level is specified as "*", TEMenu will find out the maximum possible level a player can purchase with his/her current balance.
Demo:
Commands:
- /te emenu : opens up a GUI menu.
Permissions:
- tokenenchant.temenu.use
Installation:
To install this addon, just place TEAddon-TEMenu-x.x.x.jar in 'plugin/TokenEnchant/addons' folder and restart the server or do '/te reload'.
Config:
Sample
Addons:
TEMenu:
gui_title: "Enchatnments"
message_prefix: "[TEMenu]"
no_revious_age: "&cThere are no previous pages."
no_next_page: "&cThere are no additional pages."
previous_page: "&aPrevious Page"
next_page: "&aNext Page"
current_page: "&c&lPage %currentPage% of %maxPages%"
help_messages:
emenu:
msg: "/te emenu : opens a gui listing all available enchantment for the item you're holding."
permission: "tokenenchant.temenu.use"
event_map:
PlayerInteractEvent: "LOW"
# default material is enchanted books but you can use other materials
# if player_head or skull (inolder version) is used, you can specify the texture.
enchant_item:
material: ENCHANTED_BOOK
# material: PLAYER_HEAD
# texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWZkZTNiZmNlMmQ4Y2I3MjRkZTg1NTZlNWVjMjFiN2YxNWY1ODQ2ODRhYjc4NTIxNGFkZDE2NGJlNzYyNGIifX19"
#if this option is true, you can open the GUI with right click.
use_right_click: false
use_shift_click: true
trigger_materials: # if "*" is used any right click will trigger GUI opening.
- "_PICKAXE"
- "_AXE"
- "_SWORD"
- "_HOE"
- "_SHOVEL"
- "FISHING_ROD"
- "BOW"
- "CROSSBOW"
- "_HELMET"
- "_CHESTPLATE"
- "_LEGGINGS"
- "_BOOTS"
not_available: "&cNot Available"
lore:
- "&b%description%"
- "&a%current%/%max% (Current/Max)"
- "&6Left Click: &a+%left_level%, &6Cost: &a%left_cost%"
- "&6Right Click: &a+%right_level%, &6Cost: &a%right_cost%"
- "&6Middle Click: &a+%middle_level%, &6Cost: &a%middle_cost%"
enchants:
# if "default" entry is commented out, only listed enchantments will appear in the GUI.
# positive number -> enchantment level being applied
# * -> enchant as much as a player's token balance allows.
# 0 -> no action with that click.
default:
left: 1 # default enchatment increment with left click
right: 10 # default enchatment increment with right click
middle: "*" # enchant as much as a player's token balance can.
Laser:
left: 1
right: 5
middle: 0
enchant_item:
glow: false # true by default
material: DIAMOND_PICKAXE
#material: PLAYER_HEAD
#texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWZkZTNiZmNlMmQ4Y2I3MjRkZTg1NTZlNWVjMjFiN2YxNWY1ODQ2ODRhYjc4NTIxNGFkZDE2NGJlNzYyNGIifX19"
Efficiency:
left: 1
right: 20