Craft system

Craft system allows you to craft new items based on recipe and ingredients

First of all, you need to create a recipe. Click "Add new items" fill in the basic information about the item.

Navigate to config tab and click "Is Recipe"

Choose the item you want to craft with this recipe

Select the ingredients you need to create and click "Add". Also indicate the number of ingredients

Also, game currency can be specified as ingredients or prices for crafting.

Custom Data - Allows you to create a set of your own access data from code.

To create your own custom data set - create a new class and inherit from "CBSRecipeCustomData". Only fields and the following data types are supported - 'int', 'float', 'string', 'enum', 'List<string>', 'List<float>', 'List<int>'

After that you will see your class in the selection list of "Custom Data". Fill in your details

Finally click "Save item"

When the recipe is available in the player's inventory, you can use it to create an item, as in the example

Last updated