Sueta

Captains Enchants

1.2.3

Custom Enchants in a vanilla style

·Plugin

Captains Enchants
Have you ever wanted to get Custom Enchants that work JUST like vanilla enchanting?
If so, Welcome to Captains Enchants...

Enchantments

Tools: 
     Expedition 
         Description: Receive bonus XP on mined blocks 
         Applies to: Pickaxes 
     Haste 
         Description: Receive the Haste effect while equipped 
         Applies to: Axes & Pickaxes 
     Timber 
         Description: Mine all connected logs in a tree 
         Applies to: Axes 
     Trench 
         Description: Mine a 3x3 or 5x5 hole based on the face of the block you mine 
         Applies to: Pickaxes & Shovels 
     Vein Miner 
         Description: Mine all connected blocks/ores in a vein 
         Applies to: Pickaxes 

Weapons: 
     Expertise 
         Description: Receive bonus XP on mobs Killed 
         Applies to: Axes & Swords 
     Paralyze 
         Description: Have a % chance of applying Slowness and Blindness to your enemy 
         Applies to: Axes & Swords 
     Poisonous 
         Description: Have a % chance of applying Poison to your enemy 
         Applies to: Axes & Swords 
     Thor 
         Description: Have a % chance of striking lightning upon your enemy 
         Applies to: Axes 
     Vampirism 
         Description: Have a % chance of stealing the damage you did as health 
         Applies to: Axes & Swords 
     Withering 
         Description: Have a % chance of applying Wither to your enemy 
         Applies to: Axes & Swords 

Armor: 
     Force Field 
         Description: Knockback the enemy when they attack you 
         Applies to: All Armor 
     Gears 
         Description: Applies Speed while wearing 
         Applies to: Leggings 
     Light 
         Description: Applies Night Vision while wearing 
         Applies to: Helmet 
     Overload 
         Description: Applies Health Boost while wearing 
         Applies to: All Armor 
     Springs 
         Description: Applies Jump Boost while wearing 
         Applies to: Boots 
     Voodoo 
         Description: Apply Weakness to the enemy that attacked you 
         Applies to: All Armor 

All: 
     Fail Safe 
         Description: Prevents your Weapon from breaking when it runs out of durability 
         Applies to: All 
         Max Level: 1 
     Glow 
         Description: Makes your items glow when dropped 
         Applies to: All 
         Max Level: 1 
     Netherite 
         Description: Prevents your items from burning in lava 
         Applies to: All 
         Max Level: 1

Config Options
Repair Cost Nerf

  • Enabled
    • Disables Mending from working aside from on tridents
    • Changes the anvil repair system to not have a max repair limit
  • Max Anvil Cost
    • Set the maximum XP cost for your anvils
  • Fail Safe Chance
    • What % chance will you get Fail safe from an enchanting table

Damage Vs Lifesteal

  • Conflicts Vampirism with Bane of Arthropods, Sharpness, and Smite

DOT Confliction

  • Conflicts FireAspect, Paralyze, Poisonous, and Withering. DOT(Damage Over Time)

Max Enchants

  • Books
    • Set the max # of enchants obtained at once on a book
  • Items
    • Set the max # of enchants obtained at once on an Item

Enchanting - Custom Primary

  • Enabled
    • Enable the ability to JUST obtain a Custom Enchant from an enchanting session
  • Percent
    • What % chance will the table give an enchantment that is Custom ONLY
  • Minimum
    • Minimum # of enchants when Custom Primary is activated

General Enchantment Options

  • Enabled
    • If the enchantment is able to be obtained
  • Max Level
    • The highest level that is obtainable
  • Chance
    • What % chance will you get the enchantment from an enchanting table
  • 5x5
    • For Trench > If you want to allow access to 5x5 mining
  • MaxVeinSize
    • The max # of blocks that can be mined at once with that enchantment

Commands/Permissions
/CE

  • /ce Refresh
    • Updates all Captains Enchants on items in your inventory(Incase of one not working)
  • /ce Reload ( Permission: ce.admin)
    • Updates the plugin to reflect config.yml changes
  • /ce Get <Enchantment_Name> <Level> ( Permission: ce.admin)
    • Gives you an enchanted book with the specified enchantment on it
    • Usage: /ce get Vein_Miner 1

Configs

config.yml
#####################################  
 #                                   #  
 #     Captian's Enchants Config     #  
 #                                   #  
 #####################################  
 #Disabled Mending from working aside from on tridents,  
 #Changes the anvil repair system to not have a max repair  
 #You can set the maximum XP cost for your anvils  
 #This enables Fail Safe   
RepairCostNerf  :  
  Enabled   :  false  
  MaxAnvilCost   :  30  
  FailSafeChance   :  15 

 #Conflicts Vampirism with Bane of Arthropods, Sharpness, and Smite   
DamagevsLifesteal   :  false 

 #Conflicts FireAspect, Paralyze, Poisonous, and Withering. DOT(Damage Over Time)   
DOTConfliction   :  false 

 #Set the max # of enchantments obtained from the enchanting table at once   
MaxEnchants  :  
  Books   :  4  
  Items   :  6 

 #Settings for enchanting table   
Enchanting  :  
  CustomPrimary   : 
      #Enable the ability to JUST obtain a Custom Enchant from an enchanting session   
    Enabled   :  true 
     #what % chance will the table give an enchantment that is Custom ONLY   
    Percent   :  33 
     #Minimum # of enchants when Custom is Primary   
    Minimum   :  2 

 #All Enchantments   
Netherite   : 
    #Stops your item from burning in lava   
  Enabled   :  true  
  Chance   :  10  
Glow   : 
    #Makes your item glow when dropped, great for finding items after death   
  Enabled   :  true  
  Chance   :  15 

 #Tool Enchantments   
Trench   : 
    #Mine a 3x3 or 5x5 hole based on the face of the block you mine   
  Enabled   :  true  
  5x5   :  true  
  Chance   :  15  
VeinMiner   : 
    #Mine all connected blocks/ores in a vein   
  Enabled   :  true  
  OreOnlyMode   :  true  
  Chance   :  15  
  MaxVeinSize   :  500  
Haste   : 
    #Receive the haste effect while equipped   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Expedition   : 
    #Receive bonus XP on mined blocks   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Timber   : 
    #Mine all connected logs in a tree   
  Enabled   :  true  
  Chance   :  15  
  MaxLevel   :  3  
  MaxVeinSize   :  500 

 #Weapon Enchantments   
Expertise   : 
    #Receive bonus XP on mobs Killed   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Paralyze   : 
    #Apply slowness & blindness to your enemy   
  Enabled   :  true  
  MaxLevel   :  2  
  Chance   :  15  
Poisonous   : 
    #Apply poison to your enemy   
  Enabled   :  true  
  MaxLevel   :  2  
  Chance   :  15  
Thor   : 
    #Strike lightning upon your enemy   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Vampirism   : 
    #The amount of damage you do, you take as health   
  Enabled   :  true  
  MaxLevel   :  5  
  Chance   :  15  
Withering   : 
    #Apply the wither effect to your enemy   
  Enabled   :  true  
  MaxLevel   :  2  
  Chance   :  15 

 #Armor Enchantments   
ForceField   : 
    #Knockback the enemy when they attack you   
  Enabled   :  true  
  MaxLevel   :  4  
  Chance   :  15  
Voodoo   : 
    #Apply weakness to the enemy that attacked you   
  Enabled   :  true  
  MaxLevel   :  4  
  Chance   :  15  
Springs   : 
    #Applies jump boost while wearing   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Gears   : 
    #Applies speed while wearing   
  Enabled   :  true  
  MaxLevel   :  3  
  Chance   :  15  
Light   : 
    #Applies night vision while wearing   
  Enabled   :  true  
  Chance   :  15  
Overload   : 
    #Applies Health Boost while wearing   
  Enabled   :  true  
  MaxLevel   :  5  
  Chance   :  15
lang.yml
#Text Placeholders are as follows  
 # - %ENCHANTMENT% - Enchantment name  
 # - %ENCHANTMENT_WITH_LEVEL% - Enchantment name with roman numeral  
 # - %LEVEL% - Enchantment level  
 # - %PLUGIN_NAME% - Plugin name  
 # - %PLAYER% - Player name   
Enchanting  :  
  Got_Enchantment   :   "&aYou got &7%ENCHANTMENT_WITH_LEVEL% &afrom this session"   
Commands  :  
  Reloaded   :   "&aReloaded %PLUGIN_NAME%"   
  Inventory_Is_Empty   :   "&cInventory is empty"   
  Updated_Enchantment   :   "&aUpdated &7%ENCHANTMENT_WITH_LEVEL%"   
  Update_Successful   :   "&aUpdated Entire Inventory"   
  Require_Player_Usage   :   "Must be a player for this command"   
  Higher_Than_Max   :   "&c%LEVEL% is higher than the max level"   
  Gave_Book   :   "&aGiven 1 &7%ENCHANTMENT_WITH_LEVEL% &aBook"   
  Not_Valid_Enchantment   :   "&cNo enchantments named %ENCHANTMENT%"   
  Not_Valid_Player   :   "&c%PLAYER% is not a valid online player"



How to Install

  1. Stop the server
  2. Drop the jar in the plugins folder
  3. Start the server
  4. Head to the enchantment table with some Lapis

Contributions
Thanks to Shul and JakeO from twitch for providing ideas and bug testing Via Community/Sub Servers. I 100% give credit to them for all the ideas going into this plugin. Now it's your turn to make this plugin unique by providing ideas in the discussion section of this resource. Let's make this the BEST alternative to those crazy overboard Custom Enchantment plugins that require powders, scrolls, enchanters, tinkerers, etc.

Similar projects

Plugin →