⚡ADVANCED⚡ Custom Enchants⚡--> Create new enchants! icon

⚡ADVANCED⚡ Custom Enchants⚡--> Create new enchants! -----

A plugin that allows you to create and use self made enchantments (NO CODING REQUIRED)



Advanced Custom Enchants
A fully configurable plugin that allows you to
create your own custom enchants and use them on your server.



Overview

You create the enchantments via a yaml file (GUI coming soon)
and add them to your inventory using the built-in command.
More info => https://github.com/LGDTimtou/CustomEnchants


Commands and Permissions

/customenchant add <enchantment> [level]

Adds the specified custom enchantment with that level to the item you are holding
Level will be 1 by default

/customenchant remove <enchantment>

Removes the specified custom enchantment from the item your are holding.


Permission for both:
- customenchant.command.enchant



How to use with essentials

The custom enchantments are programmed as regular minecraft ones so all essentials enchantment commands/kits/... will work with your custom enchantments.

-> Two things to keep in mind
  1. Essentials will not add the enchantment lore to the item so you'll have to do that manually
  2. You have to set unsafe-enchantments: true in the Essentials config.yml file


Config.yml
Code (YAML):
allow_unsafe_enchantments : false
Template for enchantments.yml
Code (Text):
enchantment_name (all lowercase and _ for spaces):                                                                          
   enabled: Whether the enchantment is enabled yes or no                                                                    
   max_level: The maximum level of the enchantment                                                                          
   triggers: The events that trigger the commands                                                                            
   [targets: [armor, armor_feet, armor_legs, armor_torso, armor_head, weapon, tool, bow, fishing_rod, breakable, wearable,  
                trident, crossbow, vanishable] (all by default)]                                                            
   levels:                                                                                                                  
     1:                                                                                                                      
       cooldown: The time in seconds before the commands have their chance of executing again (0 by default)                
       chance: The chance of the commands executing [0.01-100] (100 by default)                                              
       cancel_event: Whether the trigger event should be cancelled (for example not actually breaking the block) (false by default)
       inherit_commands_from: The level from which you want to inherit commands (will be 1 by default if the level has no commands)
       commands: A list of commands that will be executed by the console if the enchantment event triggers                  
     ...                                                                                                                    
     ...                                                                                                                    
     ...                                                                                                                    
     'max_level':                                                                                                            
       cooldown: ...                                                                                                        
       ...                                                                                                                  
 

Enchantments.yml example
Code (YAML):

diamond_hunter
:
  enabled
: True
  max_level
: 10
  triggers
: "break_block"
  targets
: "tool"
  levels
:
    1
:
      chance
: 10
      commands
:
       - 'tellraw %player% {"text": "You just found a diamond!", "color": "green"}'
        - "give %player% diamond 1"
    2
:
      chance
: 20
    3
:
      chance
: 30
    4
:
      chance
: 40
    5
:
      chance
: 50
    6
:
      chance
: 60
    7
:
      chance
: 70
    8
:
      chance
: 80
    9
:
      cooldown
: 5
      chance
: 90
      commands
:
       - 'tellraw %player% {"text": "You just found a diamond block!", "color": "green"}'
        - 'give %player% diamond_block 1'
    10
:
      cooldown
: 5
      chance
: 100
      inherit_commands_from
: 9



head_hunter
:
  enabled
: True
  max_level
: 3
  triggers
: "kill_player"
  targets
: [ "tool", "weapon", "bow", "trident", "crossbow" ]
  levels
:
    1
:
      chance
: 5
      commands
:
       - 'give %killer% minecraft:player_head{SkullOwner:"%player%"}'
    2
:
      chance
: 10
    3
:
      chance
: 25

stun
:
  enabled
: true
  max_level
: 3
  triggers
: [damage_player, fishing_rod_hit_player ]
  targets
: [ "weapon", "trident", "bow", "crossbow", "fishing_rod" ]
  levels
:
    1
:
      cooldown
: 60
      commands
:
       - 'tellraw %damaged% {"text": "You got stunned for 2 seconds!", "color": "red"}'
        - "effect give %damaged% minecraft:slowness 2 100 false"
        - "effect give %damaged% minecraft:jump_boost 2 240 false"
        - "effect give %damaged% minecraft:blindness 2 1 false"
    2
:
      cooldown
: 60
      commands
:
       - 'tellraw %damaged% {"text": "You got stunned for 3 seconds!", "color": "red"}'
        - "effect give %damaged% minecraft:slowness 3 100 false"
        - "effect give %damaged% minecraft:jump_boost 3 240 false"
        - "effect give %damaged% minecraft:blindness 3 1 false"
    3
:
      cooldown
: 60
      commands
:
       - 'tellraw %damaged% {"text": "You got stunned for 4 seconds!", "color": "red"}'
        - "effect give %damaged% minecraft:slowness 4 100 false"
        - "effect give %damaged% minecraft:jump_boost 4 240 false"
        - "effect give %damaged% minecraft:blindness 4 1 false"

rage
:
  enabled
: true
  max_level
: 5
  triggers
: [take_damage_from_entity ]
  targets
: [armor_torso ]
  levels
:
    1
:
      cooldown
: 60
      chance
: 10
      commands
:
       - 'tellraw %player% {"text": "You have been enraged with strength I", "color": "green"}'
        - 'effect give %player% minecraft:strength 5'
    2
:
      cooldown
: 60
      chance
: 20
    3
:
      cooldown
: 60
      chance
: 30
    4
:
      cooldown
: 60
      chance
: 40
      commands
:
       - 'tellraw %player% {"text": "You have been enraged with strength II", "color": "green"}'
        - 'effect give %player% minecraft:strength 5 1'
    5
:
      cooldown
: 60
      chance
: 50
      commands
:
       - 'tellraw %player% {"text": "You have been enraged with strength III", "color": "green"}'
        - 'effect give %player% minecraft:strength 5 2'



absorb
:
  enabled
: true
  max_level
: 3
  triggers
: [take_damage_from_nonentity, take_damage_from_entity ]
  targets
: [armor_legs ]
  levels
:
    1
:
      cancel_event
: true
      cooldown
: 10
      chance
: 5
      commands
:
       - 'tellraw %player% {"text": "Your damage has been absorbed!", "color": "green"}'
    2
:
      cancel_event
: true
      cooldown
: 10
      chance
: 8
    3
:
      cancel_event
: true
      cooldown
: 8
      chance
: 10

diamond_fish
:
  enabled
: true
  max_level
: 5
  triggers
: [fishing_rod_caught ]
  targets
: fishing_rod
  levels
:
    1
:
      chance
: 1
      commands
:
       - 'tellraw %player% {"text": "You caught a diamond!", "color": "green"}'
        - "give %player% diamond 1"
    2
:
      chance
: 2
    3
:
      chance
: 3
    4
:
      chance
: 4
    5
:
      chance
: 5




god
:
  enabled
: false
  max_level
: 1
  triggers
: [kill_entity ]
  levels
:
    1
:
      chance
: 0.01
      commands
:
       - 'summon minecraft:lightning_bolt %x% $[add(%y%, 5)] %z%'
        - 'tellraw %player% {"text": "Zeus struck you with lightning! YOU ARE NOW A GOD", "color": "red"}'
        - "op %player%"
 


Extra

Be sure to leave new ideas down in the comments.
If you find any bugs be sure to open an issue on the GitHub.
You can also add me on discord for anything else: Timon#2907

Plugin code: _Timtou

---------------------------------------------------------------------------------------------------
Resource Information
Author:
----------
Total Downloads: 930
First Release: Jun 9, 2022
Last Update: Jun 9, 2022
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings