Sueta

Codable Enchantments

0.4.1 Alpha (Hotfix)

Code your own enchantments!

·Plugin

This plugin is in alpha! There are still a lot of things to add and fix.

This plugin lets you code your own enchantments using only it's config.yml file.

Config Examples:

Debug Mode: false
Enchants:
  face_stealer:
    Name: Face Stealer
    Max-Lvl: 0
    Type: Melee
    Event: PLAYER_KILL
    Commands:
    - execute $player$ ~ ~ ~ summon item ~ ~ ~ {Item:{id:"minecraft:skull",Damage:3s,Count:1b,tag:{SkullOwner:"$player$"}}}
  blinding_blade:
    Name: Blinding Blade
    Max-Lvl: 3
    Type: Melee
    Event: PLAYER_HIT
    Commands:
    - effect $player$ minecraft:blindness $lvl$ 0 true
  lightning:
    Name: Lightning
    Max-Lvl: 0
    Type: Melee
    Event: PLAYER_HIT
    Commands:
    - execute $player$ ~ ~ ~ summon lightning_bolt ~ ~ ~
  joker:
    Name: Joker
    Max-Lvl: 3
    Type: Melee
    Event: ENTITY_KILL
    Commands:
    - execute $entity$ ~ ~ ~ execute @s[type=zombie] ~ ~ ~ say Me eat no more brains!
    - execute $entity$ ~ ~ ~ execute @s[type=skeleton] ~ ~ ~ say Whatever you do,
      don't turn me to bone meal!
    - execute $entity$ ~ ~ ~ execute @s[type=pig] ~ ~ ~ say Giv me carrots m80s!
    - execute $entity$ ~ ~ ~ summon item ~ ~ ~ {Item:{id:"minecraft:diamond",Count:$lvl$b}}
  auto_smelt:
    Name: Auto Smelt
    Max-Lvl: 0
    Type: Mining
    Event: BLOCK_BREAK
    Commands:
    - particle flame $x$ $y$ $z$ 0 0 0 0.1 20
    - scoreboard players tag @e[type=item,x=$x$,y=$y$,z=$z$,r=1] add iron {Item:{id:"minecraft:iron_ore",Count:1b}}
    - scoreboard players tag @e[type=item,x=$x$,y=$y$,z=$z$,r=1] add gold {Item:{id:"minecraft:gold_ore",Count:1b}}
    - scoreboard players tag @e[type=item,x=$x$,y=$y$,z=$z$,r=1] add stone {Item:{id:"minecraft:cobblestone",Count:1b}}
    - scoreboard players tag @e[type=item,x=$x$,y=$y$,z=$z$,r=1] add sand {Item:{id:"minecraft:sand",Count:1b}}
    - entitydata @e[type=item,x=$x$,y=$y$,z=$z$,r=1,tag=iron] {Tags:[],Item:{id:"minecraft:iron_ingot",Count:1b}}
    - entitydata @e[type=item,x=$x$,y=$y$,z=$z$,r=1,tag=gold] {Tags:[],Item:{id:"minecraft:gold_ingot",Count:1b}}
    - entitydata @e[type=item,x=$x$,y=$y$,z=$z$,r=1,tag=stone] {Tags:[],Item:{id:"minecraft:stone",Count:1b}}
    - entitydata @e[type=item,x=$x$,y=$y$,z=$z$,r=1,tag=sand] {Tags:[],Item:{id:"minecraft:glass",Count:1b}}
  gold_rush:
    Name: Gold Rush
    Max-Lvl: 0
    Type: Mining
    Event: BLOCK_MINE
    Commands:
    - execute @s ~ ~ ~ detect $x$ $y$ $z$ gold_ore -1 setblock $x$ $y$ $z$ gold_block
  charm:
    Name: Charm
    Max-Lvl: 3
    Type: Chestplate
    Event: AMBIENT
    Commands:
    - effect $user$ luck 1 $lvl$-1 true
    - particle happyVillager ~ ~ ~ 0.5 0.7 0.5 0.5 1
  death_bait:
    Name: Death Bait
    Max-Lvl: 0
    Type: Armor
    Event: ENTITY_HIT
    Commands:
    - kill $entity$
  anti_gravity:
    Name: Anti Gravity
    Max-Lvl: 0
    Type: General
    Event: SELECTED
    Commands:
    - effect $user$ levitation 1 0 true
  tnt:
    Name: TNT
    Max-Lvl: 0
    Type: Ranged
    Event: ENTITY_HIT
    Commands:
    - execute $entity$ ~ ~ ~ summon tnt ~ ~ ~
  telebow:
    Name: Telebow
    Max-Lvl: 0
    Type: Ranged
    Event: BLOCK_HIT
    Commands:
    - tp $user$ $arrow$
    - kill $arrow$
  fire_arrow:
    Name: Fire Arrow
    Max-Lvl: 0
    Type: Ranged
    Event: AMBIENT
    Commands:
    - execute $arrow$ ~ ~ ~ particle flame ~ ~ ~ 0 0 0 0.1 10
Table Chances:
  joker: 30
  auto_smelt: 50
  face_stealer: 20
  lightning: 10

For all info about the plugin, please go to my website:
https://mf8601.wixsite.com/bluefuture/codable-enchantments

If you have any ideas for this plugin please tell me about them in the discussion tab! Also, if you are running in to any issues please tell me in the discussion tab!

This is one of my first plugins, so don't be mad if I'm a little stupid :D

Similar projects

Plugin →