ADDEDthe option to add attribute modifiers to your custom items. This feature does not come by default and must be added into your item manually per the config. Details are found below. You must do research on how to do this, but it should allow you to add specific attack damage, generic armor, etc.
I have not tested this feature and I think I have implemented it correctly. If you have any issues with it, please PM me and let me know. I will be more than happy to assist.
ADDEDan API to CustomRecipes as a feature for a plugin that I should be releasing soon to utilize custom items in other plugins. API details upon request.
Thank you. Any problems or questions should be mentioned via PM or the discussion tab. I also appreciate reviews!
Add the field below to your custom recipe to utilize the attribute feature:
Code (Text):
Attribute:
# Adds a given amount of a specified attribute to the custom item.
- ATTRIBUTE, AMOUNT
Code (Text):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CustomRecipe remastered by MehBoss #
# Version v1.5.7 #
# #
# If you find a bug, send me a PM and it will be fixed! :) #
# #
# For MC 1.14+ add 'Custom-Model-Data: INT' to your recipe for utilization #
# #
# Enchant Strings: #
# http://pastebin.com/AWtKQ5UH #
# Effects: #
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffect.html #
# Attributes: #
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Items:
CursedPick:
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.
# Custom-Model-Data: '1010'
Attribute:
- GENERIC_ATTACK_DAMAGE, 4
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'