Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well

Create Depoloyer Application

The Depoloyer Application mechanic is a type of IRecipeManager and implements all the methods that are available to IRecipeManager’s, such as removeRecipe() and removeAll().

Methods

Add Recipe

The following script will add a recipe that will create Dirt when Glass is deployed.

script.zs
// <recipetype:create:deploying>.addRecipe(String name, IIngredient processedItem, IIngredient heldItem, MCWeightedItemStack[] outputs)
<recipetype:create:deploying>.addRecipe("deploy_test", <item:minecraft:glass>, <item:minecraft:air>, [<item:minecraft:dirt>]);

Register Recipe using a ProcessingRecipeBuilder

The following script will register a deployer recipe that will output Dirt, Diamond and Glass, requiring a Stick and Apple as inputs.

Check out Processing Recipe Builder for more information on what you can do with this method.

script.zs
<recipetype:create:deploying>.registerRecipe("dep_test", (rb) => {
rb.output(<item:minecraft:dirt>);
rb.output(<item:minecraft:diamond>);
rb.output(<item:minecraft:glass>);
rb.require(<item:minecraft:stick>);
rb.require(<item:minecraft:apple>);
});

Remove Recipe

Deployer recipes can be removed via their name, unfortunately Create doesn’t ship any default Deployer recipes to remove, so the following script is commented out as it won’t actually do anything.

script.zs
// <recipetype:create:deploying>.removeByName(String name);
// <recipetype:create:deploying>.removeByName("name_here");

Get a Processing Recipe Factory

You can get a ProcessingRecipeFactory of this recipe type like so:

script.zs
// <recipetype:create:deploying>.factory() as ProcessingRecipeFactory
<recipetype:create:deploying>.factory()