源代码已发布在
此插件允许玩家选择为物品施加的附魔。这是通过使附魔书可重复使用来实现的。在使用铁砧将附魔应用到物品后,书本将返还给玩家。为了保持游戏平衡,等级消耗将会增加。仍然可以像原版 Minecraft 那样使用附魔书。
功能
- 在铁砧中使用后,书本将返还给玩家
- 右键点击以使用原版处理方式
- 支持多世界(详见配置部分)
- 等级消耗会增加(可配置)
- 权限控制(详见下方说明)
- 无需客户端模组!
使用方法
只需在铁砧中将你的物品与附魔书组合即可。左击结果槽位时,插件会检查你是否拥有足够的经验等级来施加附魔。如果满足条件,附魔书将保留在槽位中;否则,插件将取消操作并显示提示信息(遗憾的是,目前尚无法更改 GUI 中显示的等级)。如果你右击结果槽位,该操作将按原版 Minecraft 的方式处理。
配置
安装方法:将 EnchantmentPlus.jar 复制到你的插件文件夹中。配置文件将在首次运行时自动创建。
然后,请向 config.yml 中添加一个或多个世界(详见下一节),并别忘了赋予你的玩家使用该插件的权限!
config.yml
- worlds
- 插件应生效的世界列表
- cost.levelfactor
- 默认等级消耗将乘以该系数(默认值:1.75)
- string.notenoughlevel
- 当玩家经验等级不足时显示的消息;变量:%level% 施加附魔所需的等级,%factor% 在配置中定义的系数
权限
以下权限可用:
- EnchantmentPlus.use
- 允许使用此插件。否则,将使用原版处理方式。
错误与计划中的功能
以下错误需在 Bukkit API 对铁砧提供更好支持后才能修复:
- 附魔尝试失败后,铁砧会受到损坏
- 如果铁砧损坏,附魔书将会丢失
- 在 GUI 中显示新的等级消耗
反馈
如果有任何建议希望添加到本插件,请告诉我。
如果你使用了此插件,请留下评论。这对我决定是否继续更新此插件非常重要。
The ultimate solution for choosing enchantments!
SOURCE CODE RELEASED AT
This plugin allows players to choose the enchantments they put on their items. This is done by making enchanted books reuseable. After applying an enchantment to an item using an anvil, the book will be returned to the player. In order to keep the game balanced, the level costs will be increased. There is still a possibility to use enchanted books as in Vanilla Minecraft.
Features
- books will be returned to the player after using in an anvil
- right click for vanilla handling
- multiworld support (see configuration for more details)
- level costs will be increased (configurable)
- permission (see below for details)
- no client mod needed!
Usage
Just combine your item with an enchanted book in an anvil. By left clicking the result slot, the plugin will check if you have enough level to apply the enchantment. If this is the case, the enchanted book stays in the slot, otherwise, the plugin cancels the action and will display a message (Sadly, there is no possibility to change the displayed level in the gui yet). If you right-click the result slot, the action will be handled as in vanilla Minecraft.
Configuration
For installation, copy the EnchantmentPlus.jar in your plugin folder. The configuration file will be created automatically on first run.
Then, add one or more worlds to the config.yml (see next section for more details) and don't forget to give your players the permission to use this plugin!
confg.yml
- worlds
- list of worlds in which the plugin should be active
- cost.levelfactor
- default level cost will be multiplied with this factor (default: 1.75)
- string.notenoughlevel
- message which is displayed when the player's experience level is too low; variables: %level% level required for enchantment, %factor% factor defined in configuration
Permissions
These permissions are available:
- EnchantmentPlus.use
- Allow to use the plugin. Otherwise, vanilla handling will be used.
Bugs & Planned features
- disenchanting (with own permission)
These bugs cannot be fixed until Bukkit's API has better support for anvils:
- anvil receives damage after an unsuccessful enchantment attempt
- if the anvil breaks, the enchanted book gets lost
- show the new level cost in the gui
Feedback
Please let me know if there's something to add to this plugin.
If you use this plugin, write a comment. It's important for me to decide if I should keep this plugin up to date.
评论 0
登录后参与评分
还没有评论,来抢沙发吧