Custom Recipe API (CRAPI) Custom Recipe API (CRAPI) is an API that makes creating custom recipes super easy. This API does require some programming knowledge, but you can start creating custom recipes within 5 minutes of downloading if you know what you're doing.
How to get started 1. Download CRAPI 2. Add it as a dependency to your plugin. / As a library 3. Start making custom recipes!
NOTE: Custom Recipes can now be made in-game with the command /crapi new, in a super easy-to-use GUI
Permissions: crapi.command: description: Allows the use of CRAPI commands
default: op
crapi.book: description: Allows the use of the CRAPI recipe book
default: op
crapi.giveitem: description: Allows the use of the CRAPI recipe book to give items
default: op
crapi.new: description: Lets the user create new recipes in-game
default: op
crapi.setworkbench: description: Allows the user to update the workbench recipe
default: op
crapi.viewworkbench: description: Allows the user to view the workbench recipe
default: op
crapi.craft: description: Allows the user to craft custom recipes
default: true
crapi.craft.item_permission: description: per-item permission. To view an item's permission name, have the crapi.op permission and view the /crapi book
crapi.craftall: description: Allows the user to craft every custom recipe
default: op
crapi.give: description: Allows the user to use the /crapi give and /crapi items commands
default: op
crapi.op: description: Allows the user to view the permission name of each recipe
default: op
Commands: /crapi book opens the recipe book /crapi new opens the recipe creator screen /crapi setworkbench edit workbench recipe /crapi workbench view workbench recipe /crapi give <player> <item> <amount> give a player a custom item /crapi items view all available items to give
What you need to know to create recipes in your plugin First you need to initialize the craft bench. You NEED to choose a Dispenser for the crafting bench, but the recipe is up to you. Here's an example of what I did for one of my other plugins:
You can make a custom itemstack for the Dispenser and a custom recipe using regular materials (since this has to be crafted in the crafting table).
Next up, you'll want to get started on some recipes. Here's an example of what I did.
Code (Text):
ItemStack redstone = new ItemStack(Material.REDSTONE);
ItemStack quartz = new ItemStack(Material.QUARTZ);
ItemStack gold = new ItemStack(Material.GOLD_INGOT);
ItemStack storageCell = new ItemStack(Material.STONE_AXE);