Lore As Enchantments API

通过此 API,你可以创建属于自己的附魔相关插件!
本 API 实现了一套系统,允许你将物品描述(Lore*)作为由你自定义定义的新附魔来使用。
首先,你需要将此库导入到你的 Java 环境中。如果你使用的是 Eclipse,操作很简单:右键点击项目名称 -> Properties(属性)-> Java Build Path(Java 构建路径)-> Add External JARs...(添加外部 JAR)。然后选择要导入的库并点击“Ok”按钮。至此,你就成功导入了 LAE-API。
重要提示:在你的 plugin.yml 文件中,你必须添加依赖。只需在那里写入 depend: [LAE]
创建我的第一个附魔
使用此 API 创建附魔非常简单。请使用 LAE 或 UpdatedLAE Java 类来创建一个新的附魔。
没什么需要过多解释的,你可以从以下地址下载我的 Example.txt 文件:
在另一个插件(如 Essentials)中为已定义的套件(kit)内的物品添加作为 Lore 的自定义附魔
是的,你可以做到。怎么做?很简单,在套件的物品配置中直接添加描述文本即可。
如果你使用的是 Essentials 的套件系统,这非常容易,你可以按此方法操作:
- 276 1 lore:Poison_I
注意:下划线 (_) 用于表示空格。
如果一个物品包含多个附魔,你需要在第一个附魔后添加一个 |,然后编写第二个附魔。
备注:如果你的附魔没有指定颜色,默认将使用浅灰色,就像普通附魔一样。此时,你需要在套件配置中添加相应的颜色代码。例如:- 276 1 lore:&7Poison_I (&7 代表浅灰色)。如果你的套件配置文件无法将 &num 替换为正确的颜色代码,请改用 § 符号代替 &。关于所有颜色代码,请在互联网上搜索:“Minecraft color codes”(我的世界颜色代码)。
使用 LAE API 的插件(如果你想让你的插件被加入列表,请联系我)
- AuroraEnchantments
Lore As Enchantments 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.
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:
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)
- AuroraEnchantments
评论 0
登录后参与评分
还没有评论,来抢沙发吧