Create a complete Minecraft Spigot/Paper custom enchantments plugin (Java) that exactly matches this AdvancedEnchantments-style system:
COMMANDS:
- /enchanter → opens the main Enchanter INVENTORY GUI
- /alchemist → opens Alchemist INVENTORY GUI
- /ce or /ae as optional aliases
- Support for Enchant Remover item (costs EXP)
CORE FEATURES:
- Enchantment books are “Discovered” (right-click to reveal random enchant of the purchased tier)
- Tiers: COMMON (white/gray), RARE (green), EPIC (purple), LEGENDARY (gold/orange)
- Books show “Discovered Weapons/Tools/Armour/Mining Enchantment”
- Success/destroy rates on application
- Magic dust / secret dust to increase success rate
- Alchemist: combine 2 same-enchant lower-level books into 1 higher-level book (example: 2× Inquisitive I → 1× Inquisitive II)
- Enchant Remover: removes one random custom enchant from an item and returns it as a book (costs 75,000 EXP)
- Grindstones also strip custom enchants
- “Enchants Wiki” button in INVENTORY GUI that links to descriptions
- Max levels and applicable item types as listed below
- Proc chance based on level
- Full config support for chances, durations, messages, economy, etc.
EXACT ENCHANTMENTS TO INCLUDE (with exact names, max levels, applicable types, and descriptions from the screenshots):
COMMON:
- Confusion (Weapons, IV) – Chance to rearrange the victim’s hotbar when attacked
- Berserk (Weapons, IV) – Increase strength while also giving mining fatigue when activated
- Blind (Weapons) – Chance to blind the opponent
- Freeze (Weapons, IV) – Slow the victim and apply a slight damage effect
- Lightning (Weapons, IV) – Chance to strike your enemy with lightning
- Haste (Tools, III) – Chance to activate the haste effect when mining
- Ghost (Armour, IV) – Chance to provide speed and invisibility for a short period
- Withering (Armour, IV) – Chance to provide the withering effect for a short period of time
- Guard (Armour, II) – Chance to spawn an iron golem to help defend yourself
RARE:
- Bleed (Weapons, IV) – Provides a slow bleed effect to the victim over a short period of time
- Thief (Weapons) – Chance to steal experience from your victim
- Poison (Weapons, IV) – Chance to poison your enemy for a short period of time
- Magnet (Tools, II) – Teleport drops straight into your inventory instead of dropping on the ground
- Smelting (Mining, IV) – Chance to smelt ores without the need for a furnace
- Lumber Jack (Mining, IV) – Chance to break a full tree at once
- Smoke Screen (Weapons, IV) – Chance to spawn a cloud of smoke when near death to help escape
- Springs (Armour, IV) – Chance to provide Jump Boost when being attacked to gain a height advantage
EPIC:
- Disarm (Weapons, IV) – Ability to move a sword or axe out of the victim’s hand
- PickPocket (Weapons, IV) – Ability to steal a random amount of money from your victim
- Final Blow (Weapons, IV) – Chance to increase strength when the victim is on low HP
- Snare (Weapons, IV) – Chance to slow the victim and apply mining fatigue
- Sniper (Weapons, IV) – Chance to do increased damage if the victim receives a headshot
- Experience (Weapons/Tools, IV) – Chance to increase the experience received from mining
- Explosive (Weapons, III) – Create a 3×3, 6×6 or 9×9 trench based on the enchant level
- Saturation (Armour, IV) – Chance to replenish hunger when defending
- Enlightened (Armour, IV) – Chance to provide resistance to the defender
- Snowstorm (Armour, IV) – Chance to provide blindness and slowness to the attacker
- Light Weight (Boots, III) – Provide a permanent speed boost
LEGENDARY:
- Heavy Hand (Weapons, IV) – Chance to double the attack damage
- Head Hunter (Weapons, IV) – Chance to drop the victim’s head on death
- Lifesteal (Weapons, IV) – Chance to heal you when attacking another player
- Assassin (Weapons, IV) – Chance to steal health from your victim
- Disarmour (Weapons, IV) – Chance to remove a random piece of the victim’s armor
- Reinforced (Armour, IV) – Provides an extra heart per level of the enchantment
- Fortify (Armour, I) – Chance to provide 100% knockback resistance for 5 seconds
- Wings (Armour, III) – Ability to fly for a short period of time on low health
- Revenge (Armour, IV) – Chance to steal health from your attacker
INVENTORY GUI REQUIREMENTS:
- Enchanter menu titled “Enchanter”
- Buttons/icons for different tiers of books
- Alchemist button with exact description: “Exchange two lower tier discovered enchantment books for a higher tier book. Example: 2 Inquisitive I Books for 1 Inquisitive II Book. You may also combine dusts to improve success rates.”
- Enchant Remover purchase option (75,000 EXP)
- Enchants Wiki icon that opens detailed descriptions
- Warning message: “Grindstones also remove custom enchants!”
Make the plugin fully configurable (YAML), support PlaceholderAPI/Vault if needed, and include all the visual style (book colors, lore format “Discovered XXX Enchantment”, Max Level: Roman numerals, bullet-point descriptions) exactly as shown in the screenshots.