EpicCraftings
作者:Ajneb97
发布时间:2017年2月28日
原生版本:未知
测试支持:1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15
以一种非常独特的方式制作定制工艺品!最多15件必备物品!
点此下载插件详细介绍
EpicCraftings 是一款 Minecraft 插件,允许玩家通过自定义配方制作独特的物品。你可以配置物品的名称、lore、附魔等属性,并设置所需的材料。通过 /ecraft 命令或配置的合成台,玩家可以创造出属于自己的史诗装备。
EpicCraftings
✔️ 主要特性
- 添加自定义配方
- 自定义所需物品的名称、lore 和附魔
- 自定义合成物品的名称、颜色、lore 和附魔
- 每个配方最多支持 15 种所需物品
- 配方可设置自定义权限
- 物品可设置为不可破坏
- 隐藏物品属性 Flag
- 隐藏所需物品属性 Flag
- 自定义合成台
- 兼容 Minecraft 1.8+
- 图形化用户界面(GUI)
- 无需任何权限
✨ EpicCraftingsPlus 扩展特性
- 分类合成台
- 配方冷却时间
- 合成命令
- 随机配方选项
- 右键点击物品执行命令
/ecraft create命令(带 GUI)轻松创建配方- 额外需求:玩家等级、JobsReborn 等级、金钱
- 物品分类
- 成功率系统
- 药水兼容性
- 染色皮革盔甲兼容性
- 头部皮肤兼容性
- 属性修改器兼容性
- 通过权限隐藏配方
- 转换所有工作台以打开 EpicCraftings 菜单
- 使用命令打开 EpicCrafting 菜单
- 避免使用金钱进行制作
- 具有随机附魔等级的工艺品
- 具有随机传说统计数据的工艺品
- 日志文件
- 阻止与制作物品的交互
- 阻止在制作表中使用制作的物品
- Boss 插件兼容性
你可以在此处找到此插件的 Premium 版本:[点击]
⚙️ Config.yml 配置详解
# EpicCraftings by Ajneb97
# I'm new here in the creation of plugins so it is possible that you can find bugs.
# If so, please contact with me:
# https://www.spigotmc.org/members/ajneb97.43796/
# I suggest you to use IDs instead of item names! Here you can find a list:
# IDs: http://www.minecraftinfo.com/idlist.htm
# Materials Link: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# -> decorative-menu-item / menu-previous-page-item / click-to-craft-item <- Name/ID of the item.
# -> firework-on-craft <- Set to true if you want to spawn a firework when a player craft an item on the plugins GUI. If not, set to false.
# -> block-ecraft-command <- This option works if you want to make specific Crafting Places with the /ecraft setplace command
# blocking the access to the /ecraft command.
# -> Crafts (id) <- Name/ID of the item to craft.
# -> Crafts (name) <- Here you can set a custom name for the item. You can use color codes.
# -> Crafts (lore) <- Here you can set a custom lore for the item. You can use color codes. You can remove this section if you don't want
# a lore for the item. You can add more lines if you want.
# You can use the variable: %player% to add the name of the user who is crafting the item.
# -> Crafts (enchants) <- Names of the enchantments that the item will have with the level of the enchant respectively.
# Here you can find a list with all the enchantments: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
# You can remove this section if you don't want enchantments for the item.
# -> Crafts (permission) <- Here you can add a custom permission to craft this item.
# -> Crafts (hide-flags) <- With this you can hide some ItemFlags like the attributes, enchants and more. You can find all the flags names here:
# https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html
# -> Crafts (requires) <- Here you can set the items that the player will need to craft the original item.
# Each line means one different item and remember to add a ';' after the ID to set the amount of this item and optional, a name and a lore.
# For example if the 'requires option' have two lines ('264;15' and '266;10'), that means that the player will need 15 Diamonds and
# 10 Gold Ingots to craft the original item. You can put a maximum of 15 required items.
# Just remember: 'id;amount;name;lore-line1;lore-line2;...;ENCHANTS:ENCHANTNAME1,level:ENCHANTNAME2,level' (This is just for the required items).
Config:
decorative-menu-item: '160:3'
menu-page-item: '262'
click-to-craft-item: '58'
firework-on-craft: true
new-version-reminder: true
block-ecraft-command: false
Crafts:
'super_sword':
id: '276'
name: "&4&lSuper Sword"
lore:
- "&6This is one of the best"
- "&6swords on the server!"
- ""
- "&8[Created by: &c%player%&8]"
enchants:
- 'DAMAGE_ALL;6'
- 'FIRE_ASPECT;3'
requires:
- '264;15;&bUnique Diamond;&7A legendary mineral;&7very hard to obtain..'
- '266;10'
permission: 'ecraft.supersword'
hide-flags:
- HIDE_ATTRIBUTES
'gold_helmet':
id: '314'
name: "&e&lKing Helmet"
lore:
- "&6Difficult to obtain, difficult to craft."
- "&6The &eKing Helmet &6is one of the most"
- "&6wanted items on the server..."
enchants:
- 'PROTECTION_ENVIRONMENTAL;8'
- 'THORNS;8'
- 'OXYGEN;5'
requires:
- '314;10'
- '322;20'
- '396;20'
- '266;50'
- '348;50'
- '351:11;60'
'epic_bow':
id: '261'
name: "&aE&bP&cI&dC &6Bow"
amount: '2'
enchants:
- 'ARROW_DAMAGE;4'
- 'ARROW_INFINITE;1'
requires:
- '261;10;ENCHANTS:ARROW_DAMAGE,1'
- '265;40'
- '264;30'
你可以通过 /ecraft create <craft> 命令创建自定义配方,并按照配置文件中的说明进行配置。
🛠️ 配置教程
配置项
decorative-menu-item: 菜单装饰物品的 ID。建议使用 ID 而不是物品名称。物品 ID 列表, 材料链接menu-page-item: 菜单分页物品的 ID。click-to-craft-item: 点击合成物品的 ID。firework-on-craft: 设置为true时,玩家在 GUI 中合成物品时会生成烟花。new-version-reminder: 设置为true时,当插件有新版本时,会向所有 OP 发送消息。block-ecraft-command: 如果只想通过自定义合成台使用插件,可以将此项设置为true,禁用/ecraft命令。
配方配置
id: 合成物品的 ID。name: 合成物品的自定义名称,可以使用颜色代码。amount: 玩家合成时将收到的物品数量lore: 合成物品的自定义 lore,可以使用颜色代码。可以使用%player%变量显示合成玩家的名称。enchants: 合成物品的附魔效果和等级。permission: 合成物品所需的自定义权限。unbreakable: 确定物品是否坚不可摧hide-flags: 隐藏物品的 ItemFlags。hide-required-items-flags: 是否隐藏所需物品的标志(附魔、属性等)。
所需物品配置
'super_sword':
id: '276'
name: "&4&lSuper Sword"
enchants:
- 'DAMAGE_ALL;10'
- 'FIRE_ASPECT;10'
requires:
- '264;15;&bUnique Diamond;&7A legendary mineral;&7very hard to obtain..;ENCHANTS:KNOCBACK,1:FIRE_ASPECT,2'
- '266;10;ENCHANTS:KNOCKBACK,1'
所需物品的格式如下:
id;amount;name;lore-line1;lore-line2;ENCHANTS:Enchantname1,level:Enchantname2,level
例如,上述配置表示合成 Super Sword 需要:
- 15 个钻石,名称为 "Unique Diamond",lore 为 "A legendary mineral" 和 "very hard to obtain..",附魔为击退 1 和火焰附加 2。
- 10 个金锭,附魔为击退 1。
合成台配置
你可以将一个方块设置为合成台,当玩家点击该方块时,会打开 EpicCraftings 菜单。这是使用 /ecraft 命令的替代方法。
要创建一个合成台,你需要看着一个方块并输入 /ecraft createplace。要移除它,看着该方块并输入 /ecraft removeplace。
💻 API
插件提供了一个简单的 API,目前只有一个事件:
要使用 API,你需要将插件添加到你的插件的外部 JAR 依赖项,并在你的 plugin.yml 文件中设置 softdepends: EpicCraftings。
//Event called when player successfully craft an item and materials are removed from player inventory.
@EventHandler
public void testEvent(EpicCraftingsCraftEvent event){
Player jugador = event.getPlayer();
String craftName = event.getCraft();
}
⌨️ 命令
/ecraft: 打开插件的 GUI 界面。/ecraft create <name>: 在配置文件中创建一个新的配方。/ecraft delete <name>: 删除一个配方。/ecraft list <page-number>: 显示所有已创建的配方。/ecraft setplace: 创建一个新的合成台。/ecraft removeplace: 移除一个已存在的合成台。/ecraft give <craft-name> <player>: 将配方物品直接给予玩家。/ecraft reload: 重载配置文件。/ecraft info: 显示插件信息。
🔑 权限
ecraft.admin: 管理员权限,用于执行所有命令。