EpicCraftings | |
---|---|
![]() |
以一种非常独特的方式制作定制工艺品!最多15件必备物品! |
作 者 | Ajneb97 |
发布时间 | 2017年2月28日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15 |
插件详细介绍
EpicCraftings 是一款 Minecraft 插件,允许玩家通过自定义配方制作独特的物品。你可以配置物品的名称、lore、附魔等属性,并设置所需的材料。通过 /ecraft
命令或配置的合成台,玩家可以创造出属于自己的史诗装备。
/ecraft create
命令(带 GUI)轻松创建配方你可以在此处找到此插件的 Premium 版本:[点击]
# 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 需要:
你可以将一个方块设置为合成台,当玩家点击该方块时,会打开 EpicCraftings 菜单。这是使用 /ecraft
命令的替代方法。
要创建一个合成台,你需要看着一个方块并输入 /ecraft createplace
。要移除它,看着该方块并输入 /ecraft removeplace
。
插件提供了一个简单的 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
: 管理员权限,用于执行所有命令。