ADDED shapeless recipes. In the config, change your recipe to be shapeless! You are able to craft your recipe in any given order to create a result
ADDED enhancements for checking item materials. This allows the implementation of previous version materials to still work on newer versions. If anything is wrong, it will print to the console.
ADDED custom NBT tags to stop players from simply renaming materials in an anvil! This is also an option labeled "Identifier" in the config!
ADDED the command /edititem key [key] to add the nbt tag to your item in hand for testing purposes (in case you wanted to test it using an anvil yourself)
ADDED an optional chat and action bar message that is triggered when someone attempts to craft an item for which they do not have the required permission.
FIXED the update checker still printing notifications even if it was disabled in the config.
SEPARATED the message configurations from being stored with the recipes
Code (Text):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CustomRecipe remastered by MehBoss #
# Version v1.5 #
# #
# If you find a bug, send me a PM and it will be fixed! :) #
# #
# Enchant Strings: #
# http://pastebin.com/AWtKQ5UH #
# Effects: #
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffect.html #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Items:
CursedPick: # This must match the item name minus "&" or spaces. Without doing so, your item effects will NOT work!
Enabled: true # Whether or not this recipe is enabled
Item: 'DIAMOND_PICKAXE' # Item ID
Item-Damage: 'none' # Used for when you need a specific type of item with a "19/00" or "13:4". leave to none if non exists.
Amount: 1 # When you craft this item, this is the amount you will get from it.
Durability: '100' # 1-100. Remove section if not needed.
Shapeless: false # Whether or not you want it to have specific order in crafting
Identifier: 'CURSED_PICKAXE' # Give your new recipe an identifier :)
Permission: 'crecipe.recipe.cursedpick' # Give a player this permission to allow them to craft this item. Remove section if no permission wanted.
Name: '&4&lCursed Pick' # Name of the item, you can use color codes. Remove if not needed
Lore:
- '&c&lThe Cursed Pickaxe' # The lore of the item, it can be multiple lines. Remove section if no lore wanted.
Effects:
- 'POISON:20:2' # This is for potion effects, remove section if not needed. The format for this should be "POTION EFFECT:DURATION:AMPLIFIER"
Hide-Enchants: true # Show enchants on item?
Enchantments:
- 'DURABILITY:300' # All the Enchantments are listed at the Top. You can also add as many as you want. Remove section if no enchant wanted.
ItemCrafting:
# X Stands for Air, do NOT include X in the 'ingredients' below.
- 'EEE' #First row in the crafting table
- 'XIX' #Second row in the crafting table
- 'XIX' #Third row in the crafting table
Ingredients:
# Format: LETTER:ITEMID:AMOUNT:DISPLAYNAME (Color Codes Included)
# REMOVE LAST PART IF NO CUSTOM NAME WANTED.
- 'E:EMERALD:1:Emerald Essence' # E Stands for emerald.
- 'I:IRON_INGOT:1:Iron Essence' # I Stands for iron ingot.
CursedSword:
Enabled: true
Item: 'DIAMOND_SWORD'
Item-Damage: 'none'
Amount: 1
Shapeless: true
Identifier: 'CURSED_SWORD'
Permission: 'crecipe.recipe.cursedsword'
Name: '&eCursed Sword'
Lore:
- '&fThe Cursed Sword'
Effects:
- 'POISON:20:2'
Hide-Enchants: true
Enchantments:
- 'DURABILITY:300'
ItemCrafting:
- 'DDD'
- 'XPX'
- 'XPX'
Ingredients:
- 'D:DIAMOND:1:Diamond Shrine'
- 'P:OAK_PLANKS:1:Wooden Board'
Code (Text):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CustomRecipe remastered by MehBoss #
# MESSAGES CONFIG #
# #
# If you find a bug, send me a PM and it will be fixed! :) #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Debug: false
Messages:
Invalid-Args: '&cInvalid args! (use: /crecipe give <player> <recipename> [amount])'
Invalid-Perms: '&cYou are not allowed to use this command!'
Player-Not-Found: '&cERROR: player not found!'
Recipe-Not-Found: '&cERROR: recipe not found!'
Inventory-Full: '&cERROR: target''s inventory is full!'
Give-Recipe: '&aSuccessfully given player item!'
Reload: '&aSuccessfully reloaded Custom Recipes!'
Update-Check: true
action-bar:
enabled: 'true'
message: '&4You are not allowed to craft this item!'
chat-message:
enabled: 'true'
message: '&cYou must be a donor to craft this recipe!'
add:
Add-Recipe: '&cPlease type the display name of the recipe you would like to add!'
Recipe-Capture: '&cCaptured desired new recipe name! Opening menu..'
Title: '&e%recipe% (ADDING RECIPE)'
gui:
Open-Sound: CLICK
Open-Message: '&aOpening menu..'
Displayname: '&cRecipe Manager - Page %page%'