Overriding Vanilla Recipes - mehboss/CustomRecipes GitHub Wiki

Refer to the blacklisted.yml

Both utilize material ENUMS

Blacklisting A Recipe:

By blacklisting a recipe, you ARE NOT removing the recipe from the server. By blacklisting a recipe you can stop a player from crafting this recipe result, and send a message or close their inventory if you choose to do so.

Overriding A Recipe:

By overriding a recipe, you ARE removing the recipe completely from the server. No one can craft this recipe anymore. The removal of the recipe from the server is done BEFORE the custom recipes are added to the server. By utilizing this feature you can change how you craft a VANILLA recipe.

########################################################################
# THIS CONFIG IS USED FOR DISABLING RECIPES                            #
# YOU MAY BLACKLIST ANY VANILLA OR CUSTOM 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                              #
#   /crecipe gui                                                       #
#                                                                      #
# OVERRIDE-RECIPES will disable normal vanilla crafting for an         #
# item and will allow you to add your own!                             #
# #######################################################################

# Whether or not you want the recipes below to be blacklisted
blacklist-recipes: true

# Whether or not to disable all vanilla recipes
disable-all-vanilla: false

# Messages to be sent if the player has insufficient permission to craft.
no-permission-message:
  close-inventory: true
  chat-message:
    enabled: true
    message: '&cYou must be a donor to craft this recipe!'
  actionbar-message:
    enabled: false
    message: '&cYou are not allowed to craft this recipe!'

# Messages to be sent if the recipe has been disabled on the server.
recipe-disabled-message:
  close-inventory: true
  chat-message:
    enabled: true
    message: '&cThat recipe has been disabled on this server!'
  actionbar-message:
    enabled: false
    message: '&cYou cannot craft this recipe!'

# Messages to be sent if the player has reached their crafting limit
# Give the player the recipe permission + .bypass in order to exempt them from this
crafting-limit:
  close-inventory: true
  chat-message:
    enabled: true
    message: '&cYou must wait &a%days%d%hours%h%minutes%m%seconds%s &cbefore you can
      craft this again!'
  actionbar-message:
    enabled: false
    message: '&cYou cannot craft this recipe!'

# Add craftable vanilla materials here if you plan on changing how you craft it.
override-recipes:
  Stonecutter:
    - 'STONE'
  Crafting:
    - 'STICK'
  Smelting:
    - 'GLASS'
vanilla-recipes:
  TNT: # item ID for soup
    permission: none # permission will then be crecipe.soup in order to craft this vanilla recipe. set to 'none' if not needed.
custom-recipes:
  THIS_CUSTOM_IDENTIFIER: # disable custom recipes from other plugins
    permission: none