⚡ADVANCED⚡ Custom Enchants⚡--> Create new enchants!
1.5.1A 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
- Essentials will not add the enchantment lore to the item so you'll have to do that manually
- You have to set
unsafe-enchantments: truein the Essentials config.yml file
► Config.yml
allow_unsafe_enchantments: false
► Template for enchantments.yml
Spoiler
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
Spoiler
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
---------------------------------------------------------------------------------------------------
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta