http://i.imgur.com/3N3IqnC.png
Adding your own recipes is easy. Create a plugin, and inside of the main plugin folder where sh_plugin is, create a folder called recipes. Inside that folder, you can put all your recipes in.
Code:
local RECIPE = Clockwork.recipe:New("Example");
RECIPE:Require("ingredient1");
RECIPE:Require("ingredient2", 3);
RECIPE:Require("ingredient3");
RECIPE:Require("ingredient4", 2);
RECIPE:Output("final_item");
RECIPE.description = "An example recipe!";
RECIPE.model = "models/error.mdl";
RECIPE:Register();
The Require function takes 3 arguments. The uniqueID of the item you wish for them to have, how many of the item they should have, and how many of the item you want to take from them if the crafting is successful.
The Output function takes only 2 arguments. The uniqueID of the item you want to give them, and how many of the item they should get. You can use the Output function multiple times to output multiple items.
You can also simply create a folder called recipes in your schema folder and nicely tuck away all your recipes if you don't want to make a plugin. Go into the recipes folder and create a lua file as so.
sh_nameofrecipe.lua
Put your recipe's code inside of that file, restart the server, and it will appear in the crafting menu. Here is the recipe I used in the screenshot.
Code:
local RECIPE = Clockwork.recipe:New("Suitcase Melon");
RECIPE:Require("melon", 3, 0);
RECIPE:Require("cw_suitcase", 3, 1);
RECIPE:Output("beer", 2);
RECIPE:Output("takeout", 1);
RECIPE.model = "models/props_junk/watermelon01.mdl";
RECIPE.description = "A mystical melon that doubles as a suitcase.";
RECIPE:Register();
This is a plugin for CLOCKWORK, so place the plugin in your clockwork plugin folder.
Enjoy.
https://dl.dropboxusercontent.com/u/32687773/recipes.zip