EnchantmentLeveler
EnchantmentLeveler is a Sponge clone of the ancient af Bukkit plugin AutoEnchanter.
Features:
- Use an item enough and it levels up!
- When an item levels up, an enchantment is added to it (or its enchantment level increases).
- Any enchantment you want, on any item you want, at any level you want.
- You can increase level requirements per level.
- You can also curve this exponentially.
Config
If you used the Bukkit plugin, then you already know how to configure this plugin. Just think HOCONwards.
Except for the unsafe
tag. I removed it because it was pointless (you are already specifying a max level).
Example config (look familiar?):
"minecraft:diamond_pickaxe" {
break {
"minecraft:gold_ore" {
enchant="minecraft:fortune"
levelFactor=1
}
enchant="minecraft:efficiency"
rate=1.0
maxLevel=5
permission="enchantmentleveler.level"
}
}
"minecraft:diamond_sword" {
damage {
enchant="minecraft:sharpness"
rate=1.0
maxLevel=2
}
}
Here are all the tags and what they do:
maxLevel
: The maximum enchantment level that this enchantment can attain. This can be larger than is possible normally. Optional, defaults to the normal max level of that enchantment.
rate
: How much XP is gained for this enchantment. Optional, defaults to 0.1.
levelFactor
: The rate that the XP required to level up increases per-level. Optional, defaults to 1.0.
levelCurveFactor
: The exponent that will be applied to the enchantment level before multiplying by levelFactor
. Optional, defaults to 1.0.
permission
: The permission node required to gain XP from this action. Optional, no permission will be checked if absent.
enchant
: The enchantment that will be added to or leveled up on the item. Nothing will happen if this is not specified.
levelRequirement
: The amount of XP required to level up this enchantment. Optional, defaults to 10.0.
These tags are used within the two action nodes, which are break
and damage
, referring to breaking blocks and damaging entities respectively. Action nodes go under the base item node, which is the item type that you will be checking. Inside an action node, you can also put a block node, which is the name of a block the item can break. You can then use block-specific options. Unspecified tags will be inherited from the action node.
For example, if I were checking for when a stone shovel breaks a snow block, my node would be here:
"minecraft:stone_shovel" {
break {
"minecraft:snow" {
Note: Also inside the config folder is a file called levels.bin
. Don’t touch this or you’ll reset everyone’s XP progress.
Commands
The only command that I would fathom that you’d need is /enchantmentleveler reload
, or /el reload
for short. The permission to do so is enchleveler.reload
.
Download
Changelog
1.0: Released! Yay!