LAE API 1.0

Lore As Enchantments API

LAE API

With this API you can create your own Enchantment-Related Plugin!

This API implements a system to use the Lore* of an item as a new and custom-defined by yourself Enchant.

First you have to import this lib in your Java environment, if you're using Eclipse it is easy: right click in your project name->Properties->Java Build Path->Add External JARs... And now select the lib to import and press the 'Ok' button. Now you imported the LAE-API with success.

IMPORTANT in your plugin.yml file you have to add the dependency. Simply write there depend: [LAE]

  • Lore = the description of an item.
    • Supports Spigot

Creating my first Enchantment

Make an enchantment is really easy with this API. Use the LAE or UpdatedLAE java-classes to create a new one.

There is not much to explain, you can download my Example.txt file from: http://dev.bukkit.org/bukkit-plugins/lae_api_v1-0/files/1-examples-txt/

Adding custom enchantments as lore with a defined kit in another plugin (like essentials)

Yes, you can do it. How? It is simple, in the item in the kit just add the lore.

If you're using Essentials' kits system it is very easy and you can do it in this method:

- 276 1 lore:Poison_I

Note: The underscore (_) determines the space.

For more than one enchant in one item you have to add a | after the first enchant and then write the second.

Notes: If you don't give a color in your enchant, the default will be Light Gray like normal enchantments, then in your kit configuration you have to add the properly color, Example: - 276 1 lore:&7Poison_I (&7 stays for Light Gray color). If your kit config doesn't replaces &num with the properly color just use ยง instead of &. For all colors just search in the Internet: 'Minecraft color codes'

Plugin that uses LAE API (contact me if you want your plugin be added)

  1. AuroraEnchantments

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    86215
  • Created
    Oct 29, 2014
  • Last Released File
    Oct 30, 2014
  • Total Downloads
    5,592
  • License

Categories

Members

Recent Files

Bukkit