Configuration
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.
General Information
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>
Shaped Recipes
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
Example:
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!'
Shapeless Recipes
In a shapeless recipe the order in the crafting area does not matter.
recipe: - <amount>:<Material>:<Data> - <amount>:<Material>
Example:
shapeless: 'Coal Barrel': block: WOOD:9 recipe: - 1:WOOD:8 - 1:COAL drops: - WOOD:8 - COAL
Furnace Recipes
In a furnace recipe only the input matters. You do not need the recipe key in this case!
Example:
"Dirty Wood": output: WOOD:5 input: DIRT
Thanks for the horrid explination of how to remove items
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.
so what do i make a remove-list.yml? and then inside just type
enchanting_table
Do tutorial video, and post a recipe.yml or config plz? can use the ids of the items?
@FuSe18
I am just citing:
The recipe configuration consists out of four different sections:
remove-vanilla:
@edric12
You can use item IDs and names: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html for the names
Can i make a recipie including a custom crafted item? Example 5 Diamonds makes a gold block and 5 of those gold blocks make a nether star and only 5 of those gold block(With custom name and lore) makes a nether star not for example 5 normal crafted gold blocks(9 gold ingots) can also make a nether star
@link3321
yes this would be great!