The Complete Guide to EnchantmentsEnhance - weihao/EnchantmentsEnhance GitHub Wiki
░ Table of contents
Getting started
- Getting started
- Understanding Vanilla Enchantments
- Version Compatibility
- Server Compatibility
- Plugin Compatibility
░ Getting started
Hi. This is the official reference of the EnchantmentsEnhance Plugin.
Understanding Vanilla Enchantments
Vanilla enchantment sharpness is calculated as y = 1.25 * x
Enchantment level is represented by x and the final damage boost by the sharpness is y. This means the sharpness is uncapped, and damage increases as the enchantments level increases.
Vanilla enchantment protection is is calculated as y = 287 / 1000 * x + 80 when 0 < x < 5 . If x > 5, then y = 94.35. y is the damage reduction of the protection enchantment. This means the protection is capped, and protection Lv1000 is same as protection Lv5 because they have same effect.
Version Compatibility
-
1.8 - 1.15
Server Compatibility
░ Change Language
language: EN_US
Supported language: ZH_CN, EN_US, RU_RU.
░ Join Message
enableWelcomeMessage: true
Set false to disable on join message.
░ Enhancing Stacked Item
enableStackedItem: false
Set false to disallow stacked item to be enhanced.
░ Open Enhance Menu
enableTableEnchant: true
openMethod: RIGHT_CLICK
- Set
enableTableEnchantto false to only use commands to open enhancement menu. - LEFT_CLICK - the player won't be able to destroy an enchantment table if you bind it to left click.
- RIGHT_CLICK - the player won't be able to open vanilla enchantment table if you bind it to right click.
- SHIFT_AND_LEFT_CLICK - the player needs to crouch and left clicking at the same time.
- SHIFT_AND_RIGHT_CLICK - the player needs to crouch and right clicking at the same time.
░ Anvil Rename
enableAnvilFix: true
Fixes color codes when player edits an enhanced item on an anvil.
░ Firework damage
enablePreventFireworkDamage: true
Allow plugin to block firework damage.
░ Fancy Announcer
enableFancyAnnouncer: true
- 1.8 uses ActionBar. No dependency required.
- 1.9 and higher use BossBar. No dependency required.
- Set false to disable fancy announcer, and it will use chat.
░ Fancy Notify
enableFancyNotify: true
Set true to use Title Bar. No dependency required.
░ Economy
enableEconomy: false
- Set true to enable some features that are related to $.
- Requires Vault dependency.
░ Disable Enchantments
disabledEnchantments:
- Wings
- Thief
- Add to the list to disable some special enchantments that may cause an issue on your server.
░ Database
enabled: false
host: 127.0.0.1
port: 3306
database: 'mydatabase'
table: 'enchantmentsenhance'
user: 'root'
password: 'by_healpot_with_love'
- If disabled, the plugin will use local YAML files.
Hostis MySQL server address.portis MySQL server port (default 3306).databaseis the database name (NOTE! You need to create the database, then the plugin will create the tables).tableis the table name (the plugin will auto create them).useris the MySQL user name.passwordis the MySQL user password.
░ Death Tags
enableLore: true
lore:
bound: tradeable
sendBoundingMessage: true
- Set
enableLorefalse to disable keep item on death. - Set
sendBoundingMessageto false to disable notification when item becomes bounded. - Supported
boundtype: tradeable, untradeable, disabled.- tradeable: keep-item-on-death, personal trading is allowed.
- untradeable: keep-item-on-death, cannot be stored in the chests, cannot be dropped.
- disabled: disable automatically applying lores.
░ Item Rename
enableRename: true
renamingIncludes:
prefix: true
suffix: true
- Set
enableRenamefalse to disable rename mechanics.
░ Life Skill
enableLifeskill: true
- Set
enableLifeskillfalse to disable life skills. - Life Skills consist of various tasks. Black stones will be rewarded by performing any of these tasks.
- mining
- chopping
- fishing
- killing
- breeding
- smelting
░ Material
░ Enchantments
░ Enhancement Configuration
0:
baseChance: 100
chanceIncreasePerFailstack: 0
maximumFailstackApplied: -1
failstackGainedPerFail: 1
costToForceEnchant: -1
downgradeIfFail: false
destroyIfFail: false
requireConcentratedStones: false
broadcastEnhance: false
fireworkIfSuccessful: true
fireworkRounds: 1
prefix: ""
suffix: ""
lore: []
enchantments:
WEAPON: []
ARMOR: []
PICKAXE: []
AXE: []
HOE: []
BOW: []
baseChanceThe base success rate of item at the level.chanceIncreasePerFailstackChance increase per failstack you have.maximumFailstackAppliedThe maximum failstack applied to the enhancement.failstackGainedPerFailFailstack gained from failing an enhancement at this level.costToForceEnchantCost of black stone to enhance the item.downgradeIfFailDowngrade the item if the enhance failed.destroyIfFailDestroy the item if the enhance failed.requireConcentratedStonesEnable to require concentrated magical stone to enhance the item.broadcastEnhanceBroadcast enhancement results.fireworkIfSuccessfulEnable or disable firework.fireworkRoundsRounds of firework.prefixPrefix of the item will be applied upon a successful enhancement.suffixSuffix of the item will be applied upon a successful enhancement.loreAdditional lore can be applied to the item upon a successful enhancement.enchantments^Exclusion, does not have.!Condition, a conditional check for an existing enchantment.?Chance, a chance to apply an enchantment.:Level, enchantment level.-Range, a range of enchantment levels.enchantment:levelThis is a basic format of enchantment.Protection:1It means a level 1 protection enchantment will have 100% chance applied to the item upon a successful enhancement.
condition!chance?enchantment:level-levelThis is an advanced format.Durability!42.3?Damage_All:1-10It reads from left to right: If the item has Durability enchantment, it will have 42.3% chance to apply a Damage_All enchantment between level 1 to 10.^Durability!Damage_All:1-2If the item does not have Durability enchantment, it will have 100% chance to apply a Damage_All enchantment between level 1 to 2.