ADDED the ability to disable vanilla recipes. Upon updating the plugin, a new config will appear called "blacklisted". Here you can add vanilla recipes (USE ITEM ENUM) to disable. You can also define specific permissions instead of just simply disabling that recipe for everyone on the server. Remove the entire permission section if it is not needed. You may define messages either in chat or via the action bar to send them a notice if they can not craft the disabled recipe.
ADDED invalid-perms section in the config
REPLACED permission crecipe.admin with crecipe.reload (/crecipe reload) and crecipe.give (/crecipe give)
FIXED a bug that disabled every vanilla recipe upon using /crecipe reload
FIXED a duplicate invalid permissions message
REMINDER: You must make sure the sounds defined in the config correspond with your server version or you WILL get errors and the plugin will NOT work correctly.
Code (Text):
########################################################################
# THIS CONFIG IS USED ONLY FOR VANILLA RECIPES #
# YOU MAY BLACKLIST ANY VANILLA RECIPE OF YOUR CHOICE #
# YOU MAY MAKE IT SO THEY MUST HAVE THE REQUIRED PERMISSION TO CRAFT #
# #
# MADE BY MEHBOSS #
# GUI MADE FOR ENHANCED USER FRIENDLINESS (coming soon) #
# #
########################################################################
blacklist-recipes: 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!'
recipes:
# item ID for soup
"282":
# permission will then be crecipe.soup in order to craft this vanilla recipe. remove section if not needed.
permission: 'soup'
Code (Text):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# CustomRecipe remastered by MehBoss #
# Version v1.4 #
# #
# 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 #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Messages:
Invalid-Args: '&cInvalid args! (use: /crecipe give <player> <recipename>)'
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!'
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!'
GUI:
Open-Sound: CLICK
Open-Message: '&aOpening menu..'
Displayname: '&cRecipe Manager'
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..'
Menu-Title: '&e%recipe% (ADDING RECIPE)'
Items:
CursedPick:
# This must match the item name minus "&" or spaces. Without doing so, your item effects will NOT work!
Item: 278
# Item ID
Permission: 'customrecipe.recipe.cursedpick'
# Give a player this permission to allow them to craft this item. Remove section if no permission wanted.
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.
Name: '&4&lCursed Pick'
# Name of the Item, you can use Color Codes!
# Remove section if no custom name wanted.
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
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:388:1:Emerald Essence'
# E Stands for Emerald because 388 is the ItemID for emerald.
# Format: LETTER:ITEMID:DISPLAYNAME (Color Codes Included)
# REMOVE LAST PART IF NO CUSTOM NAME WANTED.
- 'I:265:1:Iron Essence'
# I Stands for Iron because 265 is the ItemID for iron ingot.
# Format: LETTER:ITEMID:DISPLAYNAME (Color Codes Included)
# REMOVE LAST PART IF NO CUSTOM NAME WANTED.
Enhanced GUI for both adding/removing/editing custom recipes in the works. The GUI for disabling normal vanilla recipes is also in the works. Please be patient. If you have any issues with these resource updates or have ideas for new features PLEASE feel free to reach out to me via PM or the discussion tab.
NBT tags are also in the works.