Configuration and How-To
config.yml - The main configuration
The config.yml only has only a few options:
|check-updates||If this is set to true, cRecipes will automatically check for updates.|
|debug-output||If you enable this the plugin will inform you about errors and other stuff|
|permissions.messages||The default message shown when a player lacks the permission to craft an item|
recipes.yml- The recipe configuration
Attention: This file is NOT being generated by default! To start off, create an empty file called "recipes.yml" first!
The only real configuration file you need is a "recipes.yml" inside the cRecipes plugin folder. This plugin supports shaped recipes, shapeless recipes and furnace recipes. If you want to remove a vanilla recipe just add the name to the remove-list.
The recipe configuration consists out of four different sections:
remove-vanilla: # Put vanilla removals in here shaped: # Put shaped recipes in here shapeless: # Put shapeless recipes in here furnace: # Put furnace recipes in here
A typical recipe configuration needs at least an output and the recipe itself. Optional configurations are not needed by default.
"Name of Recipe": block: <Material>[:<Data>] # Example: block: 98:5 recipe: # The recipe itself drops: # Optional, if no list is given, the original block is being returned - <Material>:<Data> details:  # Optional, List of item "lores" permission: 'my.crafting.permission' # Optional permission need to craft this item messages: # Optional message overwrites no-permission: "No permission, my friend" amount: 4 #Optional, the amount of items to craft set-name: true # If set to false the item name is not being set extras: #Optional, list of items given upon successful crafting - <Material>:<Data>
A shaped recipe needs a defined shape to be successfully crafted (like pickaxes, shovels, ...). Possible shapes are 1x2, 1x3, 2x1, 2x2, 2x3, 3x1, 3x2, 3x3.
recipe: ingredients: X: <Material>:<data> Y: <Material> shape: - XYX - YXX
shaped: 'Hay': block: SPONGE recipe: ingredients: a: WHEAT shape: - aaa - aaa - aaa details: - Crafted with fresh wheat directly from the farmland permission: craft.hay messages: no-permission: '&3You need to solve the farmland-quest before you can craft this block!'
In a shapeless recipe the order in the crafting area does not matter.
recipe: - <amount>:<Material>:<Data> - <amount>:<Material>
shapeless: 'Coal Barrel': block: WOOD:9 recipe: - 1:WOOD:8 - 1:COAL drops: - WOOD:8 - COAL
In a furnace recipe only the input matters. You do not need the recipe key in this case!
"Dirty Wood": output: WOOD:5 input: DIRT
- 5 comments