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

SequencedAssemblyRecipeBuilder

The SequencedAssemblyRecipeBuilder is a builder object which allows you to register some recipes using a builder like pattern instead of a single method call.

Methods

Sets how many loops the recipe requires.

script.zs
// SequencedAssemblyRecipeBuilder.loops(loops as int);
builder.loops(5);

Adds an output to this recipe with the given weight.

script.zs
// SequencedAssemblyRecipeBuilder.addOutput(output as IItemStack, weight as float);
builder.addOutput(<item:minecraft:dirt>, 0.5);

Adds a transitional item to this recipe.

script.zs
// SequencedAssemblyRecipeBuilder.transitionTo(item as MCItemDefinition);
builder.transitionTo(<item:minecraft:dirt>.definition);

Sets the required ingredient for this recipe.

script.zs
// SequencedAssemblyRecipeBuilder.require(ingredient as IIngredient);
builder.require(<item:minecraft:diamond>);

Adds a step to this recipe of the specified type

script.zs
// SequencedAssemblyRecipeBuilder.addStep(factory as ProcessingRecipeFactory);
builder.addStep(<recipetype:create:cutting>.factory());

Adds a step to this recipe of the specified type and custom values.

In this example, the recipe will need to be deployed with Dirt.

script.zs
// SequencedAssemblyRecipeBuilder.addStep(factory as ProcessingRecipeFactory, builder as (ProcessingRecipebuilder) => ProcessingRecipebuilder);
builder.addStep(<recipetype:create:deploying>.factory(), (builder2) => builder2.require(<item:minecraft:dirt>));