ADDED equipment slot argument to the attribute modifier in the config.
FIXED the NBT tag that stopped vanilla recipe results from stacking.
Remove the 'identifier' section in the configuration to resolve this. Set 'Custom-Tagged' to false.
FIXED the way the configuration sections were checked. Most strings can be completely removed now in the config, except for string lists.
I will be fully implementing ingredient amounts soon as well as finishing the GUI. This will likely cause a need for a restructure of my code, which will be done as well. Please be patient as I am pretty busy as of now.
Thank you and let me know what you guys think.
Code (Text):
# Attribute:
# Adds a given amount of a specified attribute to the custom item.
# - ATTRIBUTE:AMOUNT:SLOT
Code (Text):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CustomRecipe remastered by MehBoss #
# Version v1.5.8 #
# #
# 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 :). Remove if not needed. Tags item with NBT tag.
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. Replace with [] if none wanted.
Effects:
- 'POISON:20:2' # This is for potion effects, replace with [] if not wanted. 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. Replace with [] if not 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.
# Attribute:
# Adds a given amount of a specified attribute to the custom item.
# - ATTRIBUTE:AMOUNT:SLOT
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'