Skip to content

A MineCraft plugin that allows you to create new custom enchants on your server!

Notifications You must be signed in to change notification settings

LGDTimtou/CustomEnchants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomEnchants (WIP)

A MineCraft plugin that allows you to create and use custom enchants on your server!

Features

  • Built-in Custom Enchantments
  • Command to add/remove custom enchantments from items
  • Ability to create fully custom enchantments via a yaml file (GUI coming soon)
    • Customizable:
      • Name
      • Max level
      • Events that trigger the enchantment
      • Target items that can have the enchantment
      • Cooldowns specific for each level
      • Commands that are executed by the console when the enchantment triggers (Customizable for each level)
        • These commands can contain parameters
        • These commands can contain built-in functions
      • The chance of these commands executing
      • Whether the event that triggers the enchantment should be cancelled

Built-in Custom Enchants

  • Replenish

    • Will replenish plants that have been harvested if the corresponding seed is in the player's inventory
    • Max level: 1
  • Telekinesis

    • Adds all dropped items to the player's inventory, will be dropped if full
    • Max level: 1

Global Command Parameters

  • %player%: The player that triggered the enchantment
  • %x%: The x coordinate of the player
  • %y%: The y coordinate of the player
  • %z%: The z coordinate of the player

Triggers

  • break_block
    • Triggers when a block is broken by the player
    • Parameters
      • %block_x% The x coordinate of the block
      • %block_y% The y coordinate of the block
      • %block_z% The z coordinate of the block

  • damage_entity
    • Triggers when an entity is damaged by the player
    • Overrides: damage_player, damage_animal, damage_mob

  • damage_player
    • Triggers when a player is damaged by the player
    • Parameters
      • %damaged%: The person who got damaged

  • damage_mob
    • Triggers when a mob is damaged by the player

  • damage_animal
    • Triggers when an animal is damager by the player

  • kill_entity
    • Triggers when an entity is killed by the player
    • Overrides: kill_player, kill_mob, kill_animal

  • kill_player
    • Triggers when a player is killed by the player
    • Parameters
      • %killed%: The player who got killed

  • kill_mob
    • Triggers when a mob is killed by the player

  • kill_animal
    • Triggers when an animal is killed by the player

  • take_damage_from_nonentity
    • Triggers when the player takes damage not from an entity (fall damage for example)

  • take_damage_from_entity
    • Triggers when the player takes damage from an entity
    • Overrides: take_damage_from_player, take_damage_from_mob

  • take_damage_from_player
    • Triggers when the player takes damage from another player
    • Parameters
      • %damager%: The person that damaged the player

  • take_damage_from_mob
    • Triggers when the player takes damage from a mob

  • fishing_rod_caught
    • Triggers when the player catches something with a fishing rod

  • fishing_rod_hit_player
    • Triggers when the fishing rod bobber hits a player
    • Parameters:
      • %damaged%: The player that got hit by the bobber

Built-in functions

Syntax: $[function(v1, v2, ...)]

  • add
    • Adds numbers together
  • sub
    • Subtracts numbers from each other
  • mul
    • Multiplies numbers with each other

About

A MineCraft plugin that allows you to create new custom enchants on your server!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published