Difference between revisions of "Recipe Items"

From wiki
Jump to: navigation, search
(Initial commit.)
(No difference)

Revision as of 02:01, 13 July 2017

Items are fairly broad in their types. Each type has it's own properties and uses.

This page is for items that can teach you a recipe.

Recipe Items are all items that have the following line;

"kind": "staxel.item.Recipe",

Recipe Items contain only one piece of information, the recipe to give the player. Otherwise they act like a normal item.


Creating a Recipe Item

Unlike Craft Items, Recipe Items are automatically generated from Recipes. You cannot make the item yourself (i.e. Create an "*.item" file) as the game will not be able to generate it properly. As such you will have to rely on "*.recipe" files to create Recipe Items.


Spawning in a Recipe Item

As it is not possible to create a proper Recipe Item, you can create a Recipe Item using the following;

{
  "kind": "staxel.item.Recipe",
  "recipe": "your.recipe.here"
}

Both properties must be included and non-blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Recipe" for the game to recognise it is a Recipe Item. The "recipe" is the code of the Recipe in which you want to give to the player. And that is all.


Example Input: {"kind": "staxel.item.Recipe", "recipe": "staxel.crafting.recipes.CakeCarrot"}


Config Options

"kind"

Valid options (String): A unique string which type of item this object is.

This page is referring to staxel.item.Recipe to view other types of items head to Category:Item Modding


A string containing the type of item the blob will be referring to.


"accessory"

Valid options (String): The code to an Recipe file

Default Value: No default value is specified. Always need to provide your own.


A string containing which recipe you want to let this item give to the player.